错误代码门户
Node.jsNode.js错误代码

ERR_PARSE_ARGS_INVALID_OPTION_VALUE

parse args invalid option value

代码 ERR_PARSE_ARGS_INVALID_OPTION_VALUE · Node.js 报告的问题。

当 strict 设置为 true 时,如果为 <string> 类型的选项提供了 <boolean> 值,或者为 <boolean> 类型的选项提供了 <string> 值,则由 util.parseArgs() 抛出。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

When strict set to true, thrown by util.parseArgs() if a <boolean> value is provided for an option of type <string>, or if a <string> value is provided for an option of type <boolean>.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。