I installed the composer on my Mac with this command:
curl -s https://getcomposer.org/installer | php
He downloaded composer.phar and tested:
php compser.phar
I returned everything ok But when I tried to use the command:
sudo mv composer.phar /usr/local/bin/composer
To leave it as global returns me:
mv: rename composer.phar to /usr/local/bin/composer: No such file or directory
How can I solve it? Thanks
UPDATE I read on a topic that we should move the composer like this:
sudo mv composer.phar /usr/bin/composer
But this error:
mv: rename composer.phar to /usr/bin/composer: Operation not permitted