Composer could not find a composer.json

后端 未结 11 767
南方客
南方客 2020-12-29 07:52

I tried to install composer via brew per:

In usr/local/bin (which was not on Mavricks and I had to make personally) I did.

brew tap jose

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 08:31

    To install composer and add to your global path:

    curl -sS https://getcomposer.org/installer | php
    mv composer.phar /usr/local/bin/composer
    

    run these in terminal. It does say if you get an error that usr doesn't exist, you do need to manually make it. I know an answer was selected, so this is for anyone who may see this in the future, as i am sometimes, and don't want to be advised to visit yet another site. Its simple just two lines, might have to be in sudo if you have permission error

提交回复
热议问题