Open greg-1-anderson opened 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.
/usr/local/bin
/usr/local/share/drush
$HOME/.composer/vendor/bin
$HOME/.composer/global
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.
See Fixing the Composer Global Command.
I would recommend something like:
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.