ECONFLICT Unable to find suitable version for jquery Foundation

。_饼干妹妹 提交于 2019-11-30 04:47:00

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"
  }
}

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

Best way to start with is to do

bower cache clean

After that when you do

bower install it will ask you

'Unable to find a suitable version for <Your Dependency Name>, please choose one: ,

then you can enter !1 or !2 , or whatever suits your needs the best.

This essentially adds the resolution block into bower.json as mentioned by @esbanarango but it just gives more control and understanding over what you are doing.

Try using this for the Jquery version:

"jquery": ">= 2.0.0"

However I think you would only need Foundation as a dependency:

or:

{
    "name": "PROJECT_NAME",
    "dependencies": {
       "foundation": "~5.4.7"
    }
} 

also check here for more details:

http://foundation.zurb.com/docs/sass.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!