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

ERR_ASSERTION

assertion

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

一种特殊类型的错误,只要 Node.js 检测到不应该发生的异常逻辑违规,就会触发该错误。这些通常由 node:assert 模块引发。

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

A special type of error that can be triggered whenever Node.js detects an exceptional logic violation that should never occur. These are raised typically by the node:assert module.

故障排除与诊断链接

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