我想通过composer安装yii2,但是出现了错误。
以下是错误信息:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2 2.0.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
- yiisoft/yii2 2.0.8 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 >=2.0.5 -> satisfiable by yiisoft/yii2[2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
我安装了最新版本的composer-asset-plugin。
我清理了composer缓存并更新了它,但无论如何我都无法安装yii2-basic。
下面是我的composer.json文件:
{
"require": {
"phpunit/phpunit": "*",
"phpunit/phpunit-selenium": "*",
"phpunit/php-invoker": "^1.1",
"phpunit/dbunit" : "^2.0",
"fxp/composer-asset-plugin": "^1.2.0"
},
"minimum-stablility": "dev",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Codeception/YiiBridge",
"reference": "origin/master"
}
],
"require-dev": {
"codeception/codeception": "2.2.2",
"codeception/YiiBridge": "dev-master",
"flow/jsonpath": "*"
}
}
"minimum-stability": "dev"
更改为"minimum-stability": "stable"
。 - Casimir et Hippolyte