backdrop-contrib / backdrop-drush-extension

A set of commands and boot class for Drush and Backdrop CMS.
GNU General Public License v2.0
13 stars 18 forks source link

Please do not recommend `composer global require` #183

Open greg-1-anderson opened 5 years ago

greg-1-anderson commented 5 years ago

See Fixing the Composer Global Command.

I would recommend something like:

COMPOSER_BIN_DIR=/usr/local/bin composer -n --working-dir=/usr/local/share/drush require  drush/drush "^8.3.0"

This presumes, though, that /usr/local/bin and /usr/local/share/drush exist and are writable. You might also recommend installing to $HOME/.composer/vendor/bin and $HOME/.composer/global, or perhaps just point at cgr.

serundeputy commented 5 years ago

Thanks @greg-1-anderson

I think that is good advice (very interesting reading). I'll take some time to re-write the README.md to reflect this.