Bower在Ubuntu上安装依赖项时挂起

时间:2015-01-05 16:23:48

标签: node.js ubuntu npm bower ubuntu-14.04

我试图在Ubuntu 14.04上使用Bower安装一堆依赖项。安装挂起半随机点(jQuery,闭包库或闭包编译器之一)。版本如下,以及bower.json(匿名)。

节点v0.10.35
NPM v1.4.28
鲍尔v1.3.12

bower.json

{
  "name": "redacted",
  "version": "0.12.2",
  "homepage": "redacted",
  "description": "redacted",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components"
  ],
  "dependencies": {
    "angular": "~1.3.0",
    "angular-ui-router": "~0.2.10",
    "angular-cookie": "~4.0.6",
    "bootstrap": "~3.2.0",
    "angular-animate": "~1.3.0",
    "signalr": "*",
    "angular-translate": "~2.4.0",
    "fallback": "https://github.com/dolox/fallback.git#v2",
    "angularjs-scroll-glue": "~0.0.1",
    "angular-swfobject": "~1.0.2",
    "swfobject": "*",
    "angular-moment": "~0.8.3",
    "momentjs": "~2.8.3",
    "moment-timezone": "~0.2.2",
    "angular-uuid4": "~0.2.0",
    "font-awesome": "~4.2.0",
    "angular-strap": "~2.1.4",
    "angular-motion": "~0.3.4",
    "angularjs-toaster": "~0.4.9",
    "angular-hotkeys": "https://github.com/chieffancypants/angular-hotkeys.git#1.4.5"
  },
  "devDependencies": {
    "es5-shim": "~4.0.3",
    "closure-compiler": "~0.2.6",
    "closurelibrary": "*",
    "closure-library-externs": "git@github.com:google/closure-compiler.git#v20140814",
    "angular-mocks": "~1.3.0"
  },
  "resolutions": {
    "angular": "~1.3.0"
  }
}

有人发现bower.json有什么问题,或者知道bower和Ubuntu与这些版本之间是否有任何不兼容性?

来自bower install的示例行在其挂起的位置输出(如上所述,它每次挂起的确切点都会发生变化,但大多数情况下它似乎发生在resolved上。) p>

bower fallback#v2 resolved https://github.com/dolox/fallback.git#0568407bc2

1 个答案:

答案 0 :(得分:0)

没有npm-debug.log我无法明确地诊断出这一点,但它确实看起来像是一些安装错误/竞争条件,曾经困扰旧版本的npm - 在2.1之前。

自从1.4.28以来,npm已经有很多改进 - 特别是在安装期间的冲突和竞争条件方面。你能尝试更新你的npm安装吗?

要更新npm,请运行npm -g install npm@latest

对于某些Linux发行版(Debian / Ubuntu和RedHat / CentOS),发行版提供的最新节点版本可能会落后于稳定版本。 Here are instructions from NodeSource获取最新节点。