2015-03-31 74 views
0

我一直在嘗試使用鮑爾更新moment.js(&其他幾個插件),更新時刻從2.8.4到2.9。鮑爾沒有更新或安裝

我改變了我的bower.json文件是"moment": "2.x"(中〜2.8.3,我也試過〜2.8,然後2.X)&鮑爾說,它的緩存和驗證,但運行bower list顯示2.8.4仍安裝。

每當我嘗試更新或安裝時,它都會經歷我所有的依賴關係。

我然後卸載時刻(哪些工作),但現在涼亭將不會安裝它,bower listmoment not installed

我正在運行最新的Bower 1.4.0。

我bower.json:

{ 
    "name": "intranet", 
    "version": "1.12.35", 
    "authors": [ 
    "SteB" 
    ], 
    "license": "proprietary", 
    "ignore": [ 
    "**/.*", 
    "node_modules", 
    "bower_components", 
    "test", 
    "tests" 
    ], 
    "dependencies": { 
    "jquery": "~2.1", 
    "jquery-migrate": "~1.2", 
    "modernizr": "~2.8.3", 
    "moment": "2.x", 
    "respond": "~1.4.2", 
    "jquery-ui": "~1.11", 
    "chartjs": "~1.0.2", 
    "rickshaw": "~1.5.1", 
    "gmaps": "~0.4.14", 
    "d3": "~3.4.11", 
    "bootstrap-modal": "~2.2.5", 
    "kbwood_countdown": "~2.0.1", 
    "bootstrap": "2.3.2", 
    "footable": "2.0.1.5", 
    "bootstrap-maxlength": "~1.5.7", 
    "flot": "~0.8.3", 
    "jqplot": "*", 
    "scrollup": "2.4.*", 
    "fullcalendar": "1.6.4", 
    "bootstrap-switch": "~2.0.5", 
    "es5-shim": "~4.1", 
    "chosen": "~1.2", 
    "platform": "~1.3", 
    "fontawesome": "~4.2.0", 
    "jquery.steps": "~1.1", 
    "jquery-cookie": "~1.4", 
    "typeahead.js": "~0.10.5", 
    "ladda": "~0.9.7" 
    }, 
    "devDependencies": {}, 
    "resolutions": { 
    "bootstrap": "2.3.2", 
    "jquery": "~2.1" 
    } 
} 
+0

你可以安裝任何特定的版本,像這樣:'bower install moment#2.9'...你應該嘗試這個,如果想要更新整個涼亭.json https://www.npmjs.com/package/bower-update – nitin 2015-03-31 13:24:18

+0

@nitin - 它貫穿每一個插件,說這是驗證和緩存時刻v2.9.0,但文件不出現,涼亭列表仍然說'未安裝' – SteB 2015-03-31 13:30:33

+0

粘貼yr bower.json文件 – nitin 2015-03-31 13:31:25

回答

1
  1. 刪除以前年 「bower_components」 文件夾或 「.bowerrc」 下面bower.json
  2. 使用指定的任何其他目標的安裝位置(空以獲得最新的版本)
  3. 運行 「亭子安裝」

    { 
    "name": "intranet", 
        "version": "1.12.35", 
        "authors": [ 
           "SteB" 
          ], 
        "ignore": [ 
          "**/.*", 
          "node_modules", 
          "bower_components", 
          "test", 
          "tests" 
          ], 
        "license": "proprietary", 
        "dependencies" : { 
            "jquery": null, 
            "jquery-migrate": null, 
            "modernizr": null, 
            "moment": null, 
            "respond": null, 
            "jquery-ui": null 
            } 
    } 
    

以上將做罰款。你需要檢查年月休息依賴bower bcz那裏命名似乎是不正確的

+0

使用您的示例bower.json我基本上重新安裝了一切,我認爲問題是jquery/bootstrap的分辨率版本(分別在2.1.3和2.3.2上) – SteB 2015-04-01 08:24:52