我一直在嘗試使用鮑爾更新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 list
給moment 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"
}
}
你可以安裝任何特定的版本,像這樣:'bower install moment#2.9'...你應該嘗試這個,如果想要更新整個涼亭.json https://www.npmjs.com/package/bower-update – nitin 2015-03-31 13:24:18
@nitin - 它貫穿每一個插件,說這是驗證和緩存時刻v2.9.0,但文件不出現,涼亭列表仍然說'未安裝' – SteB 2015-03-31 13:30:33
粘貼yr bower.json文件 – nitin 2015-03-31 13:31:25