bower install fails silently on any package

送分小仙女□ 提交于 2019-12-11 12:41:08

问题


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"
  }
}

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


回答1:


Try removing the bower_components directory and running bower install again.

Edit: This is also related to a circular dependency in Polymer see: https://github.com/bower/bower/issues/1324#issuecomment-44436595



来源:https://stackoverflow.com/questions/23917177/bower-install-fails-silently-on-any-package

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!