2015-03-31 76 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