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

ERR_MISSING_ARGS

missing args

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

未传递 Node.js API 的必需参数。这仅用于严格遵守 API 规范(在某些情况下可能接受 func(undefined) 但不接受 func())。在大多数原生 Node.js API 中,func(undefined) 和 func() 的处理方式相同,并且可以改用 ERR_INVALID_ARG_TYPE 错误代码。

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

A required argument of a Node.js API was not passed. This is only used for strict compliance with the API specification (which in some cases may accept func(undefined) but not func()). In most native Node.js APIs, func(undefined) and func() are treated identically, and the ERR_INVALID_ARG_TYPE error code may be used instead.

故障排除与诊断链接

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