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..
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
For me it worked:
sudo -H composer self-update