Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_MODULE_SPECIFIER

invalid module specifier

Code ERR_INVALID_MODULE_SPECIFIER · An issue reported by Node.js.

The imported module string is an invalid URL, package name, or package subpath specifier.

Troubleshooting and diagnostic links

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