Composer找不到配置文件 [英] Composer could not find the config file
本文介绍了Composer找不到配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过作曲家创建一个laravel项目。我尝试运行:
I want to create a laravel project by composer. I try to run this:
composer create-project laravel/laravel c:/laravel --prefer-dist
有一个错误:
[InvalidArgumentException]
Composer could not find the config file: C:\ProgramData\ComposerSetup\bin
To initialize a project, please create a composer.json file as described in
the http://getcomposer.org/ "Getting Started" section
作曲家.json文件是:
The composer.json file is:
{
"require": {
"laravel/laravel": "4.2.0"
}
}
cygwin。
我的计算机上还有一个代理,所以我将HTTP_PROXY_REQUEST_FULLURI和HTTPS_PROXY_REQUEST_FULLURI的路径设置为0和false
I am using windows 8 and use cygwin. I also have a proxy on my computer so I set the path of HTTP_PROXY_REQUEST_FULLURI and HTTPS_PROXY_REQUEST_FULLURI to 0 and false
任何想法?
推荐答案
删除环境变量作曲家。它会工作。
Delete the environment variable composer. And It will work.
这篇关于Composer找不到配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文