bower安装在任何软件包上无声地失败

时间:2014-05-28 16:30:25

标签: bower

我可以安装Bower,看起来好像通过npm。我使用bower init创建一个bower.json文件,并添加依赖项。然后当我使用bower安装时,终端没有任何反应。我可以使用bower更新来安装软件包,但是bower安装不起作用,即使使用--verbose也无法生成任何错误。我在下面列出了bower.json:

{
  "name": "testing",
  "version": "0.0.0",
  "authors": [
    "AJ"
  ],
  "main": "index.html",
  "license": "private",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "polymer": "Polymer/polymer#~0.3.0",
    "core-menu": "Polymer/core-menu",
    "core-ajax": "Polymer/core-ajax"
  }
}

编辑:使用1.3.3,但我也使用1.3.2再现了这个

1 个答案:

答案 0 :(得分:2)

尝试删除bower_components目录并再次运行bower install

修改 这也与Polymer中的循环依赖关系有关:https://github.com/bower/bower/issues/1324#issuecomment-44436595