Error Code Portal
Node.jsNode.jsError code

ERR_NAPI_INVALID_TYPEDARRAY_LENGTH

napi invalid typedarray length

Code ERR_NAPI_INVALID_TYPEDARRAY_LENGTH · An issue reported by Node.js.

While calling napi_create_typedarray(), (length * size_of_element) + byte_offset was larger than the length of given buffer.

Troubleshooting and diagnostic links

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