最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Find the conflict package in Bower and find the right package to install - Stack Overflow

programmeradmin2浏览0评论

I'm using SpBowerBundle to manage JS libraries on my Symfony2 project. It was working until days ago when any time I try to upgrade a package, I get this error:

bower        ECONFLICT Unable to find suitable version for moment

I suspect that the problem is on my bower.json file due to a package version I'm using. This is the content of the mentioned file:

{
    "name": "AppBundle",
    "dependencies": {
        "jquery": "latest",
        "jquery-migrate": "latest",
        "bootstrap": "latest",
        "font-awesome": "latest",
        "bootstrapvalidator": "master",
        "pwstrength-bootstrap": "latest",
        "select2": "latest",
        "fuelux": "latest",
        "moment": "master",
        "x-editable": "latest",
        "datatables": "latest",
        "bootbox": "latest",
        "knockout": "latest",
        "jquery-file-upload": "latest"
    }
}

Then,

  • How do I find the conflict package? Any log?
  • How do I install the latest release of each package? I mean which string I should use ?

I'm using SpBowerBundle to manage JS libraries on my Symfony2 project. It was working until days ago when any time I try to upgrade a package, I get this error:

bower        ECONFLICT Unable to find suitable version for moment

I suspect that the problem is on my bower.json file due to a package version I'm using. This is the content of the mentioned file:

{
    "name": "AppBundle",
    "dependencies": {
        "jquery": "latest",
        "jquery-migrate": "latest",
        "bootstrap": "latest",
        "font-awesome": "latest",
        "bootstrapvalidator": "master",
        "pwstrength-bootstrap": "latest",
        "select2": "latest",
        "fuelux": "latest",
        "moment": "master",
        "x-editable": "latest",
        "datatables": "latest",
        "bootbox": "latest",
        "knockout": "latest",
        "jquery-file-upload": "latest"
    }
}

Then,

  • How do I find the conflict package? Any log?
  • How do I install the latest release of each package? I mean which string I should use ?
Share Improve this question edited Mar 7, 2016 at 13:23 Dino 7201 gold badge10 silver badges22 bronze badges asked Nov 5, 2014 at 14:36 ReynierPMReynierPM 18.7k56 gold badges205 silver badges387 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

The conflicting package is "moment", you can see it the error message:

bower        ECONFLICT Unable to find suitable version for moment

Using the latest version of bower you can get more information about the conflict:

Unable to find a suitable version for moment, please choose one:
    1) moment#master which resolved to d5ff2cfc00 and is required by AppBundle
    2) moment#2.7.0 which resolved to 2.7.0 and is required by fuelux#3.2.1

There is a conflict between the moment dependency set in your bower.json and the one required by "fuelux".
To resolve the conflict, you can add the following to your bower.json to force a specific version of moment:

"resolutions": {
    "moment": "2.7.0"
  }
发布评论

评论列表(0)

  1. 暂无评论