when I trying to self-update composer I get "Permission denied" error message, but when I try to do same command with "sudo" - I get error message "command not found". Please help me..
To update Composer itself to the latest version, run the self-update command. It will replace your composer.phar with the latest version. If Composer was not installed as a PHAR, this command is not available. (This is sometimes the case when Composer was installed by an operating system package manager.)
Step 1: Browse to the official website using the URL https://getcomposer.org/download/ to download the latest version of Composer. Step 3: Open your terminal and paste the above commands. Wait for some time. Step 4: To check installation use the following command.
In terminal with sudo I type full path to composer.phar and it's work for me!
sudo /usr/bin/composer.phar self-update
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With