MacOS 10.13.3 (17D102)
I have composer 1.6.3 installed on PHP 7.1.7.
My end goal is to set up Drupal 8 in a dual Docker container setup; web in one, DB in another. We have scripts to do that. I cannot update this script.
When I try to run that script, I get errors like "composer: command not found".
On the command line, composer works, but in my .bash_profile
, I see:
alias composer="php /usr/local/bin/composer.phar"
so that alias isn't available to my script (guess).
Others running composer on Mac don't have the alias. On their machines:
type composer
reveals
composer is hashed (/usr/local/bin/composer)
So they don't use an alias and the script does work.
What is the best way to get composer available to scripts? A fresh and different install method for composer?