OSX -bash: composer: command not found

前端 未结 10 1015
我寻月下人不归
我寻月下人不归 2020-12-22 18:52

If i type \"composer\" i get the above error message.

I did on my macbook:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /us         


        
10条回答
  •  梦毁少年i
    2020-12-22 19:25

    If you have to run composer with sudo, you should change the directory of composer to

    /usr/bin
    

    this was tested on Centos8.

提交回复
热议问题