Permission denied when trying to self-update composer

Jackaroo Ng picture Jackaroo Ng · Mar 31, 2016 · Viewed 11.2k times · Source

When I am trying to self-update my composer, I get "Permission Denied" error.

Even when I use sudo /usr/bin/composer.phar self-update, it shows me command not found.

Please help me I have no idea about composer

Answer

Krunal picture Krunal · Apr 2, 2016

Try following command:

sudo php /usr/bin/composer.phar self-update

Make sure composer.phar file exist in "/usr/bin"