Permission denied while trying to update composer

When I try to update my composer on my own, I get a "Resolving Failure" error message.

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 the composer

+7
php command laravel composer-php iterm
source share
1 answer

Try the following command:

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

Make sure the composer.phar file exists in "/ usr / bin"

+2
source share

All Articles