Bower安装在任何软件包上均会以静默方式失败

问题描述:

我可以安装Bower,通过npm看起来还不错。我使用bower init创建一个bower.json文件,并添加依赖项。然后,当我使用Bower Install时,终端上实际上什么也没发生。我可以使用bower update安装软件包,但是bower install无法正常工作,即使使用--verbose,也无法产生任何错误。我在下面包括了bower.json:

I can install Bower and it seems just fine via npm. I create a bower.json file using bower init, and add dependencies. Then when I use bower install, literally nothing happens in the terminal. I can use bower update to install packages, but bower install does not work and I cannot get any error to produce, even with --verbose. I've included bower.json below:

{
  "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进行了复制

edit: using 1.3.3, but I've reproduced this using 1.3.2 as well

尝试删除 bower_components 目录并运行 bower install c。

Try removing the bower_components directory and running bower install again.

编辑:
这也与Polymer中的循环依赖关系有关,请参见: https:// gi thub.com/bower/bower/issues/1324#issuecomment-44436595