问题描述
"dependencies": {
"jquery": "~2.1.4",
"angular": "~1.5.0",
....
....
},
"resolutions": {
"jquery": "~2.1.4",
"angular": "~1.5.0"
}
凉亭安装 angular-peity --save
bower angular-peity#* 缓存 https://github.com/projectweekend/angular-peity.git#0.0.5bower angular-peity#* 针对 https://github.com/projectweekend/验证 0.0.5angular-peity.git#*bower peity#* 缓存 https://github.com/benpickles/peity.git#3.2.1bower peity#* 针对 https://github.com/benpickles/peity.git# 验证 3.2.1*bower jquery#~2.0.3 缓存 https://github.com/jquery/jquery-dist.git#2.0.3bower jquery#~2.0.3 针对 https://github 验证 2.0.3.com/jquery/jquery-dist.git#~2.0.3bower jquery#>=1.6 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.6 针对 https://github.com/jquery/验证 3.1.1jquery-dist.git#>=1.6bower jquery#>=1.7 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.7 针对 https://github.com/jquery/验证 3.1.1jquery-dist.git#>=1.7bower jquery#1.9.1 - 3 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#1.9.1 - 3 针对 https://github 验证 3.1.1.com/jquery/jquery-dist.git#1.9.1 - 3bower jquery#>=1.4.4 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.4.4 针对 https://github.com/验证 3.1.1jquery/jquery-dist.git#>=1.4.4bower jquery#^2.0.3 缓存 https://github.com/jquery/jquery-dist.git#2.2.4bower jquery#^2.0.3 针对 https://github.com/jquery 验证 2.2.4/jquery-dist.git#^2.0.3bower ECONFLICT 无法找到适合 jquery 的版本
bower angular-peity#* cached https://github.com/projectweekend/angular-peity.git#0.0.5bower 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.1bower 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.3bower jquery#~2.0.3 validate 2.0.3 against https://github.com/jquery/jquery-dist.git#~2.0.3bower jquery#>=1.6 cached https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.6 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#>=1.6bower jquery#>=1.7 cached https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.7 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#>=1.7bower jquery#1.9.1 - 3 cached https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#1.9.1 - 3 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#1.9.1 - 3bower jquery#>=1.4.4 cached https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.4.4 validate 3.1.1 against https://github.com/jquery/jquery-dist.git#>=1.4.4bower jquery#^2.0.3 cached https://github.com/jquery/jquery-dist.git#2.2.4bower jquery#^2.0.3 validate 2.2.4 against https://github.com/jquery/jquery-dist.git#^2.0.3bower 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 错误找到合适的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!