Bower安装在任何软件包上均会以静默方式失败 [英] bower install fails silently on any package

查看:114
本文介绍了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中的循环依赖关系有关,请参见:< a href = https://github.com/bower/bower/issues/1324#issuecomment-44436595 rel = nofollow> https:// gi thub.com/bower/bower/issues/1324#issuecomment-44436595

这篇关于Bower安装在任何软件包上均会以静默方式失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆