Error when trying to self-update composer

情到浓时终转凉″ 提交于 2019-12-10 14:11:20

问题


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


回答1:


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

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




回答2:


For me this worked:

sudo -H composer self-update


来源:https://stackoverflow.com/questions/28679994/error-when-trying-to-self-update-composer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!