D:\source\phptest>php composer.phar create-project yiisoft/yii2-app-advanced adv
anced 2.0.3
Installing yiisoft/yii2-app-advanced (2.0.3)
- Installing yiisoft/yii2-app-advanced (2.0.3)
Downloading: connection...
Downloading: 0%
Downloading: 5%
Downloading: 10%
Downloading: 15%
Downloading: 20%
Downloading: 25%
Downloading: 30%
Downloading: 40%
Downloading: 45%
Downloading: 55%
Downloading: 60%
Downloading: 65%
Downloading: 70%
Downloading: 75%
Downloading: 85%
Downloading: 90%
Downloading: 100%
Created project in advanced
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2 2.0.3 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0
.0, 2.0.1, 2.0.2, 2.0.3].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common
problems.
出现以上问题,解决办法:
先运行composer global require fxp/composer-asset-plugin:~1.0.3这个,在运行create-project语句。