[英]I got unable to choose suitable version when running bower install
When I am running bower install I got below output to let me select one of the version of angular: 当我运行凉亭安装时,我得到以下输出,让我选择angular的版本之一:
Unable to find a suitable version for angular, please choose one:
1) angular#~1.2.9 which resolved to 1.2.29 and is required by at-table#1.0.7
2) angular#~1.3 which resolved to 1.3.20 and is required by angular-notify#2.5.0
3) angular#>=1.0.8 which resolved to 1.5.3 and is required by ngstorage#0.3.10
4) angular#^1.5.0 which resolved to 1.5.3 and is required by cooltoo
5) angular#^1.0.8 which resolved to 1.5.3 and is required by angular-ui-router#0.2.18
6) angular#1.5.3 which resolved to 1.5.3 and is required by angular-cookies#1.5.3
7) angular#^1.1.5 which resolved to 1.5.3 and is required by angular-file-upload#2.2.0
8) angular#^1.2 which resolved to 1.5.3 and is required by ng-table#0.8.3
But in my bower.json file, I have set the version of angular and I don't know why it complains about the version. 但是在我的bower.json文件中,我已经设置了angular的版本,但我不知道为什么它抱怨该版本。
"dependencies": {
"requirejs": "~2.1.20",
"angular": "^1.5.0",
"angular-ui-router": "^0.2.18",
"bootstrap": "^3.3.6",
"jquery": "^2.2.1",
"angular-cookies": "^1.5.2",
"ngstorage": "^0.3.10",
"at-table": "^1.0.7",
"angular-file-upload": "^2.2.0",
"angular-notify": "^2.5.0"
} }
Dependencies require 3 different versions of angular and Bower does not know which one to use, all three require three different minor versions: 依赖项需要3个不同版本的angular,而Bower不知道要使用哪个版本,所有这三个版本都需要三个不同的次要版本:
As you can see, the first 2 dependencies require earlier minor versions of angular ( 1.2.9
and 1.3.20
). 如您所见,前2个依赖项需要更早的较小的angular版本(
1.2.9
和1.3.20
)。 I checked and you are using the latest versions of those two plugins. 我检查过,您正在使用这两个插件的最新版本。 This means you have 3 options:
这意味着您有3个选择:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.