Error Code Portal
Node.jsNode.jsError code

ERR_ASSERTION

assertion

Code ERR_ASSERTION · An issue reported by Node.js.

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.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.