Javascript 安装node后,在哪里可以找到node.js文件?
我已尝试从节点中删除此消息:Javascript 安装node后,在哪里可以找到node.js文件?,javascript,node.js,Javascript,Node.js,我已尝试从节点中删除此消息: (node) warning: Recursive process.nextTick detected 因为没有别的办法。我已经从Ubuntu存储库下载了node的源代码(我使用npm的二进制文件,但应该几乎相同,对吗?),并且有一个node.js文件包含以下内容: function maxTickWarn() { // XXX Remove all this maxTickDepth stuff in 0.11 var msg = '(node) w
(node) warning: Recursive process.nextTick detected
因为没有别的办法。我已经从Ubuntu存储库下载了node的源代码(我使用npm的二进制文件,但应该几乎相同,对吗?),并且有一个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);
}
当节点作为二进制文件安装时,我在哪里可以找到此文件?节点的
.js
文件被编译成节点
二进制文件,因此如果要更改此文件,您需要查看git repo,修改包含maxTickWarn
的文件,然后从源代码编译节点。节点的.js
文件被编译成节点
二进制文件,因此如果要更改此文件,需要签出git repo,修改包含maxTickWarn
的文件,然后从源代码编译节点。是否尝试使用运行节点--无弃用
Usage: node [options] [ -e script | script.js ] [arguments]
node debug script.js [arguments]
Options:
-v, --version print node's version
-e, --eval script evaluate script
-p, --print evaluate script and print result
-i, --interactive always enter the REPL even if stdin
does not appear to be a terminal
--no-deprecation silence deprecation warnings
--trace-deprecation show stack traces on deprecations
--v8-options print v8 command line options
--max-stack-size=val set max v8 stack size (bytes)
您是否尝试过使用
--无弃用运行节点
Usage: node [options] [ -e script | script.js ] [arguments]
node debug script.js [arguments]
Options:
-v, --version print node's version
-e, --eval script evaluate script
-p, --print evaluate script and print result
-i, --interactive always enter the REPL even if stdin
does not appear to be a terminal
--no-deprecation silence deprecation warnings
--trace-deprecation show stack traces on deprecations
--v8-options print v8 command line options
--max-stack-size=val set max v8 stack size (bytes)
+1; 使用strings$(哪个节点)| fgrep'Recursive process.nextTick'
+1轻松验证;使用strings$(哪个节点)| fgrep“Recursive process.nextTick”
轻松验证。