If i type \"composer\" i get the above error message.
I did on my macbook:
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /us
On Mac OS X, for anyone having:
-bash: /usr/local/bin/composer: Permission denied
problem, while trying to move downloaded composer.phar using:
mv composer.phar /usr/local/bin/composer
this is the cause:
System Integrity Protection
and this is the solution:
csrutil disable and hit enter. You should see a msg returned saying that:
the System Integrity Protection is off.
/usr/bin and NOT /usr/local/bin because for some reason it just didn't work there.csrutil enableThe above 6 steps are copied from here, so all the credit belongs to the user Vasheer there.