There is a method of installing Drush via Composer.
composer global require drush/drush:dev-master
How do I uninstall it using Composer?
There is a method of installing Drush via Composer.
composer global require drush/drush:dev-master
How do I uninstall it using Composer?
It seems there is no single remove command, so you need to:
Edit your composer.json
file, e.g.
vim ~/.composer/composer.json
and remove line containing drush. Save the file.
Update Composer PHP packages by:
composer global update
It will remove a globally installed drush
.
If you don't have composer
command in your PATH, try php composer.phar
instead.
drush
in my ~/.composer/composer.json
. Even I run composer global update
it is not removing. I can still see it using drush version
command. Why is so? I have PHP 5.3.29 on Ubuntu 14.04. Please advise.
Commented
Jun 22, 2016 at 10:47
which drush
or check to which package this file belong, etc.
which drush
shows /usr/local/bin/drush
. And I installed drush using composer
. Reference: docs.drush.org/en/master/install and docs.drush.org/en/master/install-alternative. How can I resolve it now please help!
Commented
Jun 22, 2016 at 12:59
composer.json
and it's still there, but it's rather question at superuser. Since it won't be a quick one. Or you may add bounty to this one clarifying how this doesn't solve the problem for you. Normally it should be removed by composer global update
if global composer.js
doesn't have it.
You can use composer global remove drush/drush
to uninstall a global Drush.
Or use composer remove drush/drush
to uninstall a project-local Drush.