我鼓励遇到与上述相同的困难:http://www.yiiframework.com/forum/index.php/topic/57532-streng-behavior-from-composer/
我遵循了所有提示,但现在我无法克服这个:
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- Installation request for yiisoft/yii2-bootstrap * -> satisfiable by yiisoft/yii2-bootstrap[dev-master].
- yiisoft/yii2-bootstrap dev-master requires bower-asset/bootstrap 3.2.* -> no matching package found.
Problem 2
- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master].
- yiisoft/yii2 dev-master requires bower-asset/jquery 1.11.* | 2.1.* -> no matching package f
ound.
Problem 3
- yiisoft/yii2 dev-master requires bower-asset/jquery 1.11.* | 2.1.* -> no matching package found.
- yiisoft/yii2-debug dev-master requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[dev-master].
- Installation request for yiisoft/yii2-debug * -> satisfiable by yiisoft/yii2-debug[dev-master].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability seting 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.
我的作曲家档案:
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"vova07/yii2-rbac-module": "dev-master",
"kartik-v/yii2-widgets": "dev-master",
"2amigos/yii2-file-upload-widget" : "*",
"nex/yii2-chosen": "dev-master",
"filsh/yii2-flags": "dev-master",
"zelenin/yii2-summernote-widget": "0.0.1",
"2amigos/yii2-highcharts-widget": "0.1.0",
"kartik-v/yii2-helpers": "dev-master",
"kartik-v/yii2-builder": "dev-master",
"kartik-v/yii2-grid": "*",
"kartik-v/yii2-dropdown-x": "*",
"kartik-v/yii2-nav-x": "*",
"kartik-v/yii2-detail-view": "dev-master",
"yiisoft/yii2": "*",
"yiisoft/yii2-debug": "*",
"bower-asset/bootstrap": "3.2.*"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-gii": "*"
},
我试过“bower-asset / bootstrap”:“*”有或没有这个(和其他包)。没有任何效果。
答案 0 :(得分:1)
尝试将此添加到您的composer.json
...
"Require": {
...
"bower-asset/jquery": "@stable",
"bower-asset/jquery.inputmask": "@stable",
"bower-asset/punycode": "@stable",
"bower-asset/bootstrap": "@stable",
...
}
如果您在最后一个之后没有任何内容,请务必删除逗号
答案 1 :(得分:-1)
删除./vendor文件夹中的所有数据并再次运行:composer update