Thursday, May 16, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 21666  / 2 Years ago, sat, october 8, 2022, 9:43:52

I'm following the steps in get composer.org and I want to install composer globally and give me this error.



   mv: cannot move ‘composer.phar’ to ‘/usr/local/bin/composer’: Permission denied


So what I'm missing here?


More From » software-installation

 Answers
5

You need to use



sudo mv composer.phar /usr/local/bin/composer


to move the file to the specified location(/usr/local/bin/composer). You will be prompted to enter your password after you enter this command. (See the note after the command).



sudo is used to execute privileged commands and requires the user who is executing this command present in the sudoers list.



If you encounter an error such as this:



user is not in the sudoers list. This incident will be reported


You will need to ask your administrator to run this command for you as you are not privileged enough to run this command.


[#24927] Monday, October 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arbaour

Total Points: 346
Total Questions: 115
Total Answers: 105

Location: Oman
Member since Wed, Apr 12, 2023
1 Year ago
;