2

启动时出现错误bower install

(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.

/usr/local/lib/node_modules/bower/node_modules/tmp/lib/tmp.js:261
  throw err;
        ^

系统信息:
Bower 版本:1.2.4 节点版本:0.10.17
操作系统:Linux 3.5.0-39-generic ia32 (UBUNTU)

如何在不改变我的 bower.json 的情况下解决这个问题?我的 bower.json 看起来像

{
  "name": "myapp",
  "version": "0.0.0",
  "dependencies": {
    "angular-unstable": "~1.1.4",
    "json3": "~3.2.4",
    "es5-shim": "~2.0.5",
    "angular-resource": "~1.0.5",
    "angular-cookies": "~1.0.5",
    "angular-complete": "*",
    "jquery": ">=1.8",
    "bootstrap": "~2.3.1",
    "bootstrap-js": "http://twitter.github.com/bootstrap/assets/bootstrap.zip",
      "angular-bootstrap": "~0.3",
    "jquery.scrollTo": "1.4.4",
    "ng-translate": "https://github.com/nezo/ng-translate/archive/master.zip",
    "ngUpload": "*",
    "less.js": "1.3.3",
    "Chart.js": "*",
    "carouFredSel": "https://raw.github.com/gilbitron/carouFredSel/master/jquery.carouFredSel-6.2.1.js",
    "angular-ui": "0.4.0",
    "jquery-file-upload": "*",
    "jquery-ui": "*",
      "spin.js": "~1.3",
    "OpenLayers-2.12": "http://openlayers.org/download/OpenLayers-2.12.zip",
    },
  "devDependencies": {
    "angular-mocks": "~1.0.5",
    "angular-scenario": "~1.0.5"
  }
}
4

1 回答 1

2

该错误似乎是由 引起的"OpenLayers-2.12",尽管它似乎只是.zip. 尝试使用.tar.gz

"OpenLayers-2.12": "http://openlayers.org/download/OpenLayers-2.12.tar.gz"

bootstrap.zip此外,最近发布的 Bootstrap 3的 URL也随之移动。

"bootstrap-js": "http://getbootstrap.com/2.3.2/assets/bootstrap.zip"
于 2013-08-27T09:15:21.813 回答