ECONFLICT无法为jquery Foundation找到合适的版本 [英] ECONFLICT Unable to find suitable version for jquery Foundation

查看:75
本文介绍了ECONFLICT无法为jquery Foundation找到合适的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装基金会,但它一直让我与Jquery发生冲突

I am trying to install Foundation but its continuously giving me conflict with Jquery

λ bower install foundation
bower foundation#x              cached https://github.com/zurb/bower-foundation.git#5.5.1
bower foundation#x            validate 5.5.1 against https://github.com/zurb/bower-foundation.git#x
bower foundation#*              cached https://github.com/zurb/bower-foundation.git#5.5.1
bower foundation#*            validate 5.5.1 against https://github.com/zurb/bower-foundation.git#*
bower jquery#>= 2.1.0           cached https://github.com/jquery/jquery.git#2.1.3
bower jquery#>= 2.1.0         validate 2.1.3 against https://github.com/jquery/jquery.git#>= 2.1.0
bower modernizr#>= 2.7.2        cached https://github.com/Modernizr/Modernizr.git#2.8.3
bower modernizr#>= 2.7.2      validate 2.8.3 against https://github.com/Modernizr/Modernizr.git#>= 2.7.2
bower jquery.cookie#~1.4.0      cached https://github.com/carhartl/jquery-cookie.git#1.4.1
bower jquery.cookie#~1.4.0    validate 1.4.1 against https://github.com/carhartl/jquery-cookie.git#~1.4.0
bower fastclick#>=0.6.11        cached https://github.com/ftlabs/fastclick.git#1.0.6
bower fastclick#>=0.6.11      validate 1.0.6 against https://github.com/ftlabs/fastclick.git#>=0.6.11
bower jquery-placeholder#~2.0.7 cached https://github.com/mathiasbynens/jquery-placeholder.git#2.0.9
bower jquery-placeholder#~2.0.7         validate 2.0.9 against https://github.com/mathiasbynens/jquery-placeholder.git#~2.0.7
bower                                  ECONFLICT Unable to find suitable version for jquery

我的bower.json文件是这个

My bower.json file is this

{
  "name": "refactor",
  "private": true,
  "dependencies": {
    "jquery": "~1.11.1",
    "raphael": "1.3.x",
    "font-awesome": "~4.3.0",
    "foundation": "x"
  }
}


推荐答案

使用您的 bower.json中的分辨率

Use resolutions in your bower.json

{
  "name": "refactor",
  "private": true,
  "dependencies": {
    "jquery": "~1.11.1",
    "raphael": "1.3.x",
    "font-awesome": "~4.3.0",
    "foundation": "x"
  },
  "resolutions": {
    "jquery": "~1.11.1"
  }
}

这将迫使bower使用特定版本的jQuery。

This will force bower to use that specific version of jQuery.

这篇关于ECONFLICT无法为jquery Foundation找到合适的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆