我尝试安装另一个程序包,该程序包被中断,并提示要求使用哪个版本。有没有正确的方法来跳过安装而不是使用CTRL + C强制停止进程? 谢谢你的任何建议。
Unable to find a suitable version for angular, please choose one:
1) angular#1.4.9 which resolved to 1.4.9 and is required by angular-mocks#1.4.9
2) angular#>=1.2.26 <1.6 which resolved to 1.5.0 and is required by angular-translate#2.9.2, angular-translate#2.11.0, angular-translate#2.11.0
3) angular#1.5.0 which resolved to 1.5.0 and is required by angular-cookies#1.5.0
4) angular#^1.2.9 which resolved to 1.5.0 and is required by angular-loading-bar#0.9.0
5) angular#>=1.4.0 which resolved to 1.5.0 and is required by angular-bootstrap#1.2.5
6) angular#1.5.2 which resolved to 1.5.2 and is required by angular-mocks#1.5.2
7) angular#^1.0.8 which resolved to 1.5.2 and is required by angular-ui-router#0.2.18
8) angular#~1.5.2 which resolved to 1.5.2 and is required by angular-seed
9) angular#>=1.3.x which resolved to 1.5.2 and is required by satellizer#0.14.0
Prefix the choice with ! to persist it to bower.json
答案 0 :(得分:0)
bower help
安装是你的朋友...... bower install --force-latest
可能是你最好的选择
没有错误可能会尝试:
-q, --quiet Only output important information
-s, --silent Do not output anything, besides errors
答案 1 :(得分:0)
您必须为依赖项提供解决方案:
{
"name": "myapp",
"version": "0.0.1",
"dependencies": {
"angular": "~1.3.x"
},
"resolutions": {
"angular": "~1.3.x"
}
}
这将迫使bower安装提供的版本。