Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to self-update composer

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..

Terminal screenshot

like image 801
lieroes Avatar asked Feb 23 '15 17:02

lieroes


People also ask

How do I update my composer self-update?

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.)

How do I update composer on Mac?

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.


1 Answers

In terminal with sudo I type full path to composer.phar and it's work for me!

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

like image 140
lieroes Avatar answered Oct 18 '22 07:10

lieroes