通过Composer将Codeception安装到Yii2 [英] Installing Codeception over Composer to Yii2

查看:138
本文介绍了通过Composer将Codeception安装到Yii2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Yii2项目中安装Codeception时遇到问题。

I have problem with installation Codeception to my Yii2 project.

1)将作曲家下载到Yii2项目中:

1) Downloaded composer to the Yii2 project:

curl -sS https://getcomposer.org/installer | php

2)尝试安装Codeception:

2) Trying install 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


尝试删除[供应商文件夹]首先。 fxp插件会缓存软件包信息,以便更快,因此无法降级而无需删除供应商

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

这篇关于通过Composer将Codeception安装到Yii2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆