Composer 找不到配置文件 [英] Composer could not find the config file
本文介绍了Composer 找不到配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过 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:ProgramDataComposerSetupin
To initialize a project, please create a composer.json file as described in
the http://getcomposer.org/ "Getting Started" section
composer.json 文件为:
The composer.json file is:
{
"require": {
"laravel/laravel": "4.2.0"
}
}
我正在使用 Windows 8 并使用 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
有什么想法吗?
推荐答案
删除环境变量composer.它会起作用的.
Delete the environment variable composer. And It will work.
这篇关于Composer 找不到配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文