我試圖通過每釀造安裝作曲:作曲家找不到composer.json
在usr/local/bin
(這是不是在Mavricks,我只好親自做),我做到了。
brew tap josegonzalez/homebrew-php
brew install josegonzalez/php/composer
我可以運行php composer.phar
,但是當我做php composer.phar install
,我得到的錯誤:
Composer could not find a composer.json file in /usr/local/bin To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
所以我去https://getcomposer.org/doc/00-intro.md
。 CTRL + F「.json」,什麼也沒有。認真的作曲家?
編輯: 我想要做的是有composer
可執行vs php composer.phar
。這從現在起在這一點上起作用。
對於那些問題呢?在發佈你的消息之前,你有沒有看過其他的答案? –