簡體   English   中英

在Bower中找到沖突包,找到要安裝的正確包

[英]Find the conflict package in Bower and find the right package to install

我正在使用SpBowerBundle來管理我的Symfony2項目上的JS庫。 它工作到幾天前,當我嘗試升級包時,我收到此錯誤:

bower        ECONFLICT Unable to find suitable version for moment

我懷疑問題出在我的bower.json文件上,因為我正在使用的軟件包版本。 這是上述文件的內容:

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

然后,

  • 我如何找到沖突包? 任何日志?
  • 如何安裝每個軟件包的最新版本? 我的意思是我應該使用哪個字符串?

沖突的包是“時刻”,你可以看到它的錯誤信息:

bower        ECONFLICT Unable to find suitable version for moment

使用最新版本的bower,您可以獲得有關沖突的更多信息:

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

您的bower.json中設置的時刻依賴項與“fuelux”所需的時間依賴性之間存在沖突。
要解決沖突,您可以將以下內容添加到bower.json中以強制使用特定版本的時刻:

"resolutions": {
    "moment": "2.7.0"
  }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM