ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

javascript – bower ECONFLICT即使添加了分辨率,也无法找到合适的jquery错误版本

2019-09-28 04:36:16  阅读:219  来源: 互联网

标签:javascript angularjs bower bower-install


"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

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有