ECONFLICT Unable to find suitable version for jquery Foundation

前端 未结 3 468
轮回少年
轮回少年 2020-12-29 06:20

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

λ bower install foundation
bower foundation#x              cached https         


        
相关标签:
3条回答
  • 2020-12-29 06:52

    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.

    0 讨论(0)
  • 2020-12-29 07:05

    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.

    0 讨论(0)
  • 2020-12-29 07:05

    Try using this for the Jquery version:

    "jquery": ">= 2.0.0"
    

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

    enter image description here

    or:

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

    also check here for more details:

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

    0 讨论(0)
提交回复
热议问题