bower ECONFLICT即使添加了分辨率,也无法找到合适的jquery错误版本 [英] bower ECONFLICT Unable to find suitable version for jquery error even after adding resolutions

查看:136
本文介绍了bower ECONFLICT即使添加了分辨率,也无法找到合适的jquery错误版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"dependencies": { 
  "jquery": "~2.1.4", 
  "angular": "~1.5.0",
  ....
  ....
},
"resolutions": {
  "jquery": "~2.1.4",
  "angular": "~1.5.0"
}

bower install angular-peity - -save

bower angular-peity#* cached https://github.com/projectweekend/angular-peity.git#0.0.5
bower angular-peity#*验证0.0.5对 https://github.com/projectweekend/angular-peity.git# *
bower peity#*缓存 https://github.com/benpickles/peity.git #3.2.1
bower peity#* validate 3.2.1对 https://github.com/benpickles/peity.git# *
bower jquery#~2.0.3 cached https://github.com/jquery/jquery-dist.git#2.0.3
bower jquery#~2.0。 3对 https://github.com/jquery/jquery验证2.0.3 -dist.git#~2.0.3
bower jquery#> = 1.6 cached https://github.com/jquery/jquery-dist.git#3.1.1
bower jquery#> = 1.6验证3.1.1对 https://github.com/jquery/jquery-dist.git# > = 1.6
bower jquery#> = 1.7缓存 https://github.com/jquery/jquery -dist.git#3.1.1
bower j查询#> = 1.7验证3.1.1对 https://github.com/jquery/jquery -dist.git#> = 1.7
bower jquery#1.9.1 - 3 cached https://github.com/jquery/jquery-dist.git#3.1.1
bower jquery#1.9.1 - 3验证3.1.1对 https://github.com/jquery/jquery-dist.git#1.9.1 - 3
bower jquery#> = 1.4.4缓存 https ://github.com/jquery/jquery-dist.git#3.1.1
bower jquery#> = 1.4.4验证3.1.1对 https://github.com/jquery/jquery-dist.git# > = 1.4.4
bower jquery# ^ 2.0.3缓存 https://github.com/jquery/jquery-dist.git#2.2.4
bower jquery#^ 2.0.3对 https://github.com/jquery/jquery-dist验证2.2.4 .git# ^ 2.0.3
bower ECONFLICT无法为jquery找到合适的版本

bower angular-peity#* cached https://github.com/projectweekend/angular-peity.git#0.0.5 bower angular-peity#* validate 0.0.5 against https://github.com/projectweekend/angular-peity.git#* bower peity#* cached https://github.com/benpickles/peity.git#3.2.1 bower peity#* validate 3.2.1 against https://github.com/benpickles/peity.git#* bower jquery#~2.0.3 cached https://github.com/jquery/jquery-dist.git#2.0.3 bower jquery#~2.0.3 validate 2.0.3 against https://github.com/jquery/jquery-dist.git#~2.0.3 bower jquery#>=1.6 cached https://github.com/jquery/jquery-dist.git#3.1.1 bower jquery#>=1.6 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#>=1.6 bower jquery#>=1.7 cached https://github.com/jquery/jquery-dist.git#3.1.1 bower jquery#>=1.7 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#>=1.7 bower jquery#1.9.1 - 3 cached https://github.com/jquery/jquery-dist.git#3.1.1 bower jquery#1.9.1 - 3 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#1.9.1 - 3 bower jquery#>=1.4.4 cached https://github.com/jquery/jquery-dist.git#3.1.1 bower jquery#>=1.4.4 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#>=1.4.4 bower jquery#^2.0.3 cached https://github.com/jquery/jquery-dist.git#2.2.4 bower jquery#^2.0.3 validate 2.2.4 against https://github.com/jquery/jquery-dist.git#^2.0.3 bower ECONFLICT Unable to find suitable version for jquery

推荐答案

最佳开始的方法是做

bower cache clean

之后当你这样做时

bower install 它会问你

Unable to find a suitable version for jquery, please choose one:
1) jquery#exampleversion1 which resolved to 1.5.3 and is required by demo1
2) jquery#^exampleversion2 which resolved to 1.5.3 and is required by app2    
3) jquery#>.examplegversion3 which resolved to 1.5.3 and is required by app3Test

然后你可以输入!1 !2 ,或任何最适合你需要的东西。

then you can enter !1 or !2 , or whatever suits your needs the best.

使用预先输入数字!基本上将分辨率块添加到bower.json中,但它可以让您更好地控制什么是正在发生,它可能会解决您的问题。

Prefixing number with ! essentially adds the resolution block into bower.json but it will give you more control over what's happening and it might solve your problem.

这篇关于bower ECONFLICT即使添加了分辨率,也无法找到合适的jquery错误版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆