Error trying to update composer

when I try to update the composer myself, I get the "Permission denied" error message, but when I try to execute the same command with "sudo" I get the "command not found" error message. Please help me..

Terminal screenshot

+4
source share
2 answers

In the terminal with sudo, I type the full path to composer.phar and it works for me!

sudo / usr / bin / composer.phar self-updating

+9
source

For me it worked:

sudo -H composer self-update
-1
source

All Articles