我正在为Yii2框架构建一个软件包。
在本地一切都运行得很好:测试结果正确,composer安装/更新依赖项没有问题(我已经在几台不同的开发环境机器上尝试过,完全没有问题)。
但是当travis-ci尝试构建我的项目时,相同的composer命令返回一个错误:“无法将您的要求解析为可安装的软件包集”。
Problem 1
- yiisoft/yii2 2.0.4 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.3 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.
- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 2.0.* -> satisfiable by yiisoft/yii2[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4].
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.
这是我的
composer.json
要求:"require": {
"php": ">=5.4.0",
"mobileka/scope-applicator": "1.0.*",
"yiisoft/yii2": "2.0.*"
},
"require-dev": {
"phpunit/phpunit": "4.1.*",
"mockery/mockery": "0.9.3",
"satooshi/php-coveralls": "0.6.1"
},
让我再说一遍:这在本地可以工作,其他人也尝试克隆我的存储库,一切都很顺利。你可以自己尝试:https://github.com/mobileka/scope-applicator-yii2。使用以下命令:
git clone git@github.com:mobileka/scope-applicator-yii2.git && cd scope-applicator-yii2 && composer install
。是否还有其他人面临这个问题,并且有解决方案吗?谢谢。