【问题标题】:bower ECONFLICT Unable to find suitable version for jquery error even after adding resolutionsbower ECONFLICT 即使在添加分辨率后也无法找到适合 jquery 错误的版本
【发布时间】:2017-07-25 21:56:13
【问题描述】:
"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#* 针对https://github.com/projectweekend/angular-peity.git#* 验证 0.0.5 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-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 针对https://github.com/jquery/jquery-dist.git#>=1.6 验证 3.1.1 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 验证 3.1.1 bower jquery#1.9.1 - 3 个缓存 https://github.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-dist.git#>=1.4.4 验证 3.1.1 bower jquery#^2.0.3 缓存https://github.com/jquery/jquery-dist.git#2.2.4 bower jquery#^2.0.3 针对 https://github.com/jquery/jquery-dist.git#^2.0.3 验证 2.2.4 bower ECONFLICT 找不到适合 jquery 的版本

【问题讨论】:

    标签: javascript angularjs bower bower-install


    【解决方案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 中,但它可以让您更好地控制正在发生的事情,并且可能会解决您的问题。

    【讨论】:

      【解决方案2】:

      我在 Windows 10 上使用 Git Bash for Windows 时遇到了同样的错误

      ECONFLICT 无法找到适合 jquery 的版本

      它没有进入我可以选择选项!1!2的部分

      对我来说,切换到 Windows PowerShell 解决了问题并运行相同的命令 bower install

      我怀疑它与用户权限有关。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-03-27
        • 2016-04-29
        • 2016-06-21
        • 2016-11-19
        • 2016-02-23
        相关资源
        最近更新 更多