小编典典

Bower ECONFLICT即使添加分辨率也无法找到适合jquery错误的版本

angularjs

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

凉亭安装角度平度-保存

Bower angular-peity#缓存https://github.com/projectweekend/angular-
peity.git#0.0.5
bower angular-peity#
针对https://github.com/projectweekend/angular-
peity验证0.0.5
.git# * Bower
peity#缓存https://github.com/benpickles/peity.git#3.2.1
bower
peity#
针对https://github.com/benpickles/peity.git#验证3.2.1 * Bower jquery#〜2.0.3缓存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已缓存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 jquery#> =
1.7针对https://github.com/jquery/jquery-
dist.git# > = 1.7 bower
jquery#1.9.1-3.缓存https:// github验证3.1.1 .com / jquery / jquery-
dist.git#3.1.1
bower
jquery#1.9.1-3针对https://github.com/jquery/jquery-
dist.git#1.9.1验证3.1.1-3
bower jquery #> = 1.4.4缓存的https://github.com/jquery/jquery-
dist.git#3.1.1 Bower
jquery#> =
1.4.4针对https://github.com/jquery/jquery验证3.1.1 -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验证2.2.4 。 com / jquery / jquery-
dist.git#
^ 2.0.3 bower
ECONFLICT无法找到适用于jquery的版本


阅读 212

收藏
2020-07-04

共1个答案

小编典典

最好的开始方法是

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,或任何最适合您的需求。

前缀数字!本质上将解析块添加到bower.json中,但是它将使您对正在发生的事情有更多的控制权,并且可以解决您的问题。

2020-07-04