2015-11-20 130 views
0

我有我的应用程序,它使用jquery版本1.11.1。现在我安装了一个typeahead组件,它看起来依赖于不同的jQuery版本(v 1.9) 我发现解决这个问题非常混乱。它说bower包解决库冲突

Unable to find a suitable version for jquery, please choose one: 
    1) jquery#~1.9 which resolved to 1.9.1 and is required by typeahead.js#0.9.3 
    2) jquery#^1.11.1 which resolved to 1.11.3 and is required by myapp 
    3) jquery#^1.11.3 which resolved to 1.11.3 and is required by ember-truth-helpers#1.2.0 
    4) jquery#>=1.2 which resolved to 2.1.4 and is required by jquery-cookie#1.4.1 
    5) jquery#>=1.6 which resolved to 2.1.4 and is required by jquery-ui#1.11.4 
    6) jquery#>= 1.9.1 which resolved to 2.1.4 and is required by bootstrap#3.3.5 
    7) jquery#>= 1.7.0 < 2.2.0 which resolved to 2.1.4 and is required by ember#1.13.3 

你能帮助我理解了上述消息,什么是解决这种冲突的最佳方式是什么?

回答

0

你可以去jquery#^ 1.11.3它解析为1.11.3它应该工作。 jQuery API对于Ember来说非常可靠,所以你的应用程序应该能够处理你在该消息中看到的所有版本。

+0

但是你能帮助我理解这些信息! – testndtv

+0

你的应用程序是建立在许多库的基础之上的,而这些库通常并不总是与最新版本保持一致。但是,您使用的许多库依赖于jQuery。您依赖的每个库可能需要jQuery的不同版本范围,这就是您的情况。 –