通过 Composer 安装 Codeception 到 Yii2
Installing Codeception over Composer to Yii2
我在将 Codeception 安装到我的 Yii2 项目时遇到问题。
1) 下载composer到Yii2项目:
curl -sS https://getcomposer.org/installer | php
2) 尝试安装 Codeception:
php composer.phar require "codeception/codeception:*"
错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 == 2.0.2.0 -> satisfiable by yiisoft/yii2[2.0.2].
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 <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
我是不是漏掉了什么?
来自http://yiiframework.com/forum/index.php/topic/61520-using-jquery-111
Try deleting [the vendor folder] first. fxp plugin caches packages info in order to be faster so it's not possible to downgrade w/o deleting vendor
我在将 Codeception 安装到我的 Yii2 项目时遇到问题。
1) 下载composer到Yii2项目:
curl -sS https://getcomposer.org/installer | php
2) 尝试安装 Codeception:
php composer.phar require "codeception/codeception:*"
错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 == 2.0.2.0 -> satisfiable by yiisoft/yii2[2.0.2].
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 <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
我是不是漏掉了什么?
来自http://yiiframework.com/forum/index.php/topic/61520-using-jquery-111
Try deleting [the vendor folder] first. fxp plugin caches packages info in order to be faster so it's not possible to downgrade w/o deleting vendor