You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't install Drush 8 with cgr and am having trouble determining which project is forcing the lock which makes the Drush dependency fail.
monkey@Sonic ~/.composer $ cgr drush/drush 8.3.0
>> Running: composer '--working-dir=/home/monkey/.composer/global/drush/drush' require 'drush/drush:8.3.0'
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/files/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
./composer.json has been updated
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/files/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/monkey/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: pear/console_table[v1.3.1, v1.3.0].
- Can only install one of: pear/console_table[v1.3.1, v1.3.0].
- Can only install one of: pear/console_table[v1.3.1, v1.3.0].
- drush/drush 8.3.0 requires pear/console_table ~1.3.1 -> satisfiable by pear/console_table[v1.3.1].
- Installation request for drush/drush 8.3.0 -> satisfiable by drush/drush[8.3.0].
- Installation request for pear/console_table (locked at v1.3.0) -> satisfiable by pear/console_table[v1.3.0].
Installation failed, reverting ./composer.json to its original content.
I was unable to determine which project outside Drush requires pear/console_table 1.3.0:
cgr drush/drush 8.3.0 works for me. You do, however, probably want Drush 8.4.0, as it supports contrib modules with semver releases, and earlier versions do not.
Anyway, it seems like your problem was caused by composer global require pear/console_table, or some other global require that included pear/console_table. Maybe you did a global require of an older version of Drush?
Clear out your global vendor directory and start again. Don't use composer global require for anything except for Composer plugins that you really do want to install globally. Be conservative about even this, though.
I can't install Drush 8 with cgr and am having trouble determining which project is forcing the lock which makes the Drush dependency fail.
I was unable to determine which project outside Drush requires pear/console_table 1.3.0:
And yes, some
/.composer
directories are owned byroot
:How can I resolve this version lock issue and install Drush?
The text was updated successfully, but these errors were encountered: