最新消息:yaf表单扩展中新增加了浮点数、日期和集合的校验。php yaf框架扩展实践三——表单

npm install依赖库Recursive process.nextTick detected

NodeJS 460浏览 0评论

npm install依赖库出现如下错误:

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

console.js:62
  this._stderr.write(util.format.apply(this, arguments) + '\n');
                      ^
RangeError: Maximum call stack size exceeded

从字面上来看应该是依赖包之间出现死循环的依赖,最后造成内存溢出。这种错误比较奇怪,初步猜测是nodejs或者是npm的版本问题。

npm-install-recursive-process.nextTick-detected

npm-install-recursive-process.nextTick-detected

查下现有的环境

node 0.10.45
npm 3.9.5

后来和同事了解到他那边跑项目的nodejs版本都是4.4.x的版本。于是从后来从node 0.10.45升级到4.4.5,npm升级到3.9.5再次尝试就可以了。

转载请注明:快乐编程 » npm install依赖库Recursive process.nextTick detected

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址