使用composer创建laravel项目:Composer could not find the config file?

按照文档操作,

1.先安装composer,然后下载laravel安装包:
composer global require "laravel/installer=~1.1"
命令执行成功。

2.将目录~/.composer/vendor/bin添加到系统环境变量中。

3.运行laravel new test命令创建laravel项目,报错如下:

E:>laravel new test
Crafting application...
Composer could not find the config file: C:\Users\yanwushu\vendor\bin
To initialize a project, please create a composer.json file as described in the
https://getcomposer.org/ "Getting Started" section
Application ready! Build something amazing.

个人对composer和laravel都没有比较清晰的理解,请熟悉的同志给予指点。

------------------------------------------------------------------------------------------
更新

在网上找了一下,有同样问题的很多,但是他们的解决方案对我都无效。
大家没遇到过相同的问题吗?这个问题是什么原因导致的?如何解决?
https://github.com/composer/wi ... es/40
https://github.com/composer/composer/issues/3514
http://askproblem.com/question ... file/
已邀请:

要回复问题请先登录注册