作曲家找不到composer.json [英] Composer could not find a composer.json

查看:350
本文介绍了作曲家找不到composer.json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过brew通过以下方式安装作曲家:

I tried to install composer via brew per:

usr/local/bin中(不是在Mavricks上,我必须亲自做).

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

brew tap josegonzalez/homebrew-php brew install josegonzalez/php/composer

我可以运行php composer.phar,但是当我执行php composer.phar install时,出现错误:

I can run php composer.phar, but when I do php composer.phar install, I get the error:

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

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"却什么也没有.认真作曲?

So I go to the https://getcomposer.org/doc/00-intro.md. CTRL+F ".json" and nothing's there. Seriously composer?

我试图做的是拥有composer可执行文件与php composer.phar.从现在开始,这是可行的.

What I was trying to do was to have composer executable vs php composer.phar. This works at this point from this now.

推荐答案

入门"页面是文档介绍.就像Composer一样,大多数文档都将从安装说明开始.

The "Getting Started" page is the introduction to the documentation. Most documentation will start off with installation instructions, just like Composer's do.

包含composer.json文件信息的页面为位于此处-在基本用法"下的第二页.

The page that contains information on the composer.json file is located here - under "Basic Usage", the second page.

我建议您完整阅读文档,以使您更好地了解如何使用Composer.我还建议您删除所拥有的物品,并按照文档中提供的安装说明进行操作.

I'd recommend reading over the documentation in full, so that you gain a better understanding of how to use Composer. I'd also recommend removing what you have and following the installation instructions provided in the documentation.

这篇关于作曲家找不到composer.json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆