简体   繁体   English

运行Bower安装时无法选择合适的版本

[英]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不知道要使用哪个版本,所有这三个版本都需要三个不同的次要版本:

  1. angular#~1.2.9 which resolved to 1.2.29 and is required by at-table#1.0.7 2) 角度# 〜1.2.9解析为1.2.29 ,并由表#1.0.7要求2)
  2. angular#~1.3 which resolved to 1.3.20 and is required by angular-notify#2.5.0 3) angular# 〜1.3解析为1.3.20 ,由angular-notify#2.5.0要求3)
  3. angular#>=1.0.8 which resolved to 1.5.3 and is required by ngstorage#0.3.10 angular#> = 1.0.8,解析为1.5.3 ,ngstorage#0.3.10要求
  4. the rest of the dependencies require 1.5.3 - so there is no problem with them 其余的依赖项需要1.5.3-因此它们没有问题

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.91.3.20 )。 I checked and you are using the latest versions of those two plugins. 我检查过,您正在使用这两个插件的最新版本。 This means you have 3 options: 这意味着您有3个选择:

  1. You can either remove at-table and angular-notify and find alternatives. 您可以删除at-tableangular-notify并找到替代方法。
  2. Ask the authors to update their dependencies. 要求作者更新其依赖性。
  3. Clone the repos on GitHub and change the dependencies yourself ( here and here ). 在GitHub上克隆仓库,并自行更改依赖关系( 此处此处 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行bower install命令时找不到适合角度的版本 - Unable to find a suitable version for angular while running bower install command 无法找到合适的角度 - 凉亭安装版本 - Unable to find a suitable version for angular - bower install Circleci无法通过以下方式安装凉亭-ECONFLICT无法找到合适的版本 - Circleci fails bower install with - ECONFLICT Unable to find suitable version 当Bower说“无法找到合适的版本”时,Bower的意思是什么? - What does Bower mean when it says “unable to find a suitable version”? Bower错误:无法找到适合角度的版本 - Bower Error: Unable to find suitable version for angular Bower:无法找到合适的角度版本 - Bower: Unable to find a suitable version for angular 运行Bower安装时出现错误 - I get an error when running bower install bower.json错误ECONFLICT无法找到合适的角度版本 - bower.json Error ECONFLICT Unable to find suitable version for angular Bower ECONFLICT即使添加分辨率也无法找到适合jquery错误的版本 - bower ECONFLICT Unable to find suitable version for jquery error even after adding resolutions 无法找到合适的角度版本,角度动画模块的割草机安装错误 - Unable to find a suitable version for angular with bower installation error for angular-animate module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM