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.