我試圖從節點刪除此消息:節點安裝時,我可以在哪裏找到node.js文件?
(node) warning: Recursive process.nextTick detected
,因爲沒有別的辦法。我從Ubuntu的存儲庫(?我用的是二進制從故宮,但它應該是差不多了,右)下載節點的來源,有一個node.js
文件,其中包含此:
function maxTickWarn() {
// XXX Remove all this maxTickDepth stuff in 0.11
var msg = '(node) warning: Recursive process.nextTick detected. ' +
'This will break in the next version of node. ' +
'Please use setImmediate for recursive deferral.';
if (process.throwDeprecation)
throw new Error(msg);
else if (process.traceDeprecation)
console.trace(msg);
else
console.error(msg);
}
我在哪裏可以找到這個文件當節點安裝爲二進制文件?
+1;很容易用'strings $(which node)|驗證fgrep'遞歸process.nextTick''。 – mklement0