gpt4 book ai didi

javascript - bower ECONFLICT 即使在添加分辨率后也无法找到适合 jquery 错误的版本

转载 作者:行者123 更新时间:2023-11-30 08:27:47 35 4
gpt4 key购买 nike

"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#* 缓存 https://github.com/projectweekend/angular-peity.git#0.0.5bower angular-peity#* 根据 https://github.com/projectweekend/angular-peity.git# 验证 0.0.5 *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.com/jquery/jquery-dist.git#~2.0.3 验证 2.0.3bower jquery#>=1.6 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.6 根据 https://github.com/jquery/jquery-dist.git# 验证 3.1.1 >=1.6bower jquery#>=1.7 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.7 根据 https://github.com/jquery/jquery-dist.git# 验证 3.1.1 >=1.7bower jquery#1.9.1 - 3 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#1.9.1 - 3 根据 https://github.com/jquery/jquery-dist.git#1.9.1 验证 3.1.1 - 3bower jquery#>=1.4.4 缓存 https://github.com/jquery/jquery-dist.git#3.1.1bower jquery#>=1.4.4 根据 https://github.com/jquery/jquery-dist.git# 验证 3.1.1 >=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/jquery-dist.git# 验证 2.2.4 ^2.0.3bower ECONFLICT 无法找到适合 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 ,或者任何最适合您需要的内容。

! 作为前缀本质上是将解析 block 添加到 bower.json 中,但它会让您更好地控制正在发生的事情,它可能会解决您的问题。

关于javascript - bower ECONFLICT 即使在添加分辨率后也无法找到适合 jquery 错误的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42618699/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com