javascript – bower ECONFLICT即使添加了分辨率,也无法找到合适的jquery错误版本
作者:互联网
"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.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#*验证3.2.1对https://github.com/benpickles/peity.git# *
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-dist.git#~2.0.3验证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验证3.1.1对https://github.com/jquery/jquery-dist.git#> = 1.7
bower jquery#1.9.1 – 3缓存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验证2.2.4对https://github.com/jquery/jquery-dist.git# ^ 2.0.3
bower ECONFLICT无法为jquery找到合适的版本
解决方法:
最好的方法是做
bower cache clean
那之后当你这样做
凉亭安装它会问你
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中,但它可以让您更好地控制正在发生的事情,它可以解决您的问题.
标签:javascript,angularjs,bower,bower-install 来源: https://codeday.me/bug/20190928/1825944.html