【发布时间】:2014-05-03 21:27:04
【问题描述】:
我有应用程序,我开始使用它,我只想运行它,但它崩溃了。它使用运行节点服务器的 grunt,它是 Angular.js 应用程序。当我运行运行服务器的 grunt 任务并且尝试从浏览器访问应用程序时,我收到了来自 grunt 或节点的警告:
(node) warning: Recursive process.nextTick detected. This will break in the next
version of node. Please use setImmediate for recursive deferral.
很多行,最后:
util.js:35
var str = String(f).replace(formatRegExp, function(x) {
^
RangeError: Maximum call stack size exceeded Use --force to continue.
Aborted due to warnings.
我尝试在我的应用程序中搜索process.nextTick,但它在node_modules 目录中的很多地方,而不是在src 中。
是否可以删除该警告以便我可以运行应用程序?我应该搜索什么代码来搜索这个递归调用?
更新
我使用ack,发现这行来自这个文件的3个地方:
$REPO/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable- stream/node_modules/core-util-is/float.patch
$REPO/node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/connect/node_modu les/multiparty/node_modules/readable-stream/node_modules/core-util-is/float.patch
/usr/lib/node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/nod e_modules/core-util-is/float.patch
但不是js文件。
【问题讨论】:
-
发布你给replace()的内联函数
-
大概写它的人没有得到所有这些错误。也许您应该在节点
v0.8.0上运行它?
标签: javascript node.js recursion gruntjs