选项
所有选项,包括 V8 选项,都允许用破折号 (-
) 或下划线 (_
) 分隔单词。
例如,--pending-deprecation
等价于 --pending_deprecation
。
来自命令行的选项优先于通过 NODE_OPTIONS
环境变量传入的选项。
All options, including V8 options, allow words to be separated by both
dashes (-
) or underscores (_
).
For example, --pending-deprecation
is equivalent to --pending_deprecation
.
If an option that takes a single value, for example --max-http-header-size
,
is passed more than once, then the last passed value will be used. Options
from the command line take precedence over options passed through the
NODE_OPTIONS
environment variable.