当我运行bower install时,我得到了以下输出,让我选择其中一个版本的角度:
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
但是在我的bower.json文件中,我设置了角度的版本,我不知道它为什么抱怨该版本。
"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"
}
答案 0 :(得分:1)
依赖关系需要3个不同版本的角度,而Bower不知道使用哪个版本,所有三个需要三个不同的次要版本:
正如您所看到的,前2个依赖项需要早期的角度小版本(1.2.9
和1.3.20
)。我查了一下,你正在使用这两个插件的最新版本。这意味着您有3个选项: