OSX -bash: composer: command not found

前端 未结 10 1006
我寻月下人不归
我寻月下人不归 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条回答
  •  情话喂你
    2020-12-22 19:18

    this wasted me a day or two. like why dont anybody say on tutorials that the command composer is not to be used without actually linking and stuff... I mean everyone is writing composer command like its the next step when we are not all 5 years experienced users to know these details.

    cp composer.phar /usr/local/bin/composer

    did it for me on ubuntu after getting stuck for 2 days

提交回复
热议问题