如何纠正节点Recursive process.nextTick?

时间:2013-08-27 08:07:48

标签: node.js bower

发布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;
        ^

系统信息:
凉亭版本: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"
  }
}

1 个答案:

答案 0 :(得分:2)

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

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

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

"bootstrap-js": "http://getbootstrap.com/2.3.2/assets/bootstrap.zip"