Error code

Node.js ERR_INVALID_MODULE_SPECIFIER

NODE.JSERR_INVALID_MODULE_SPECIFIER
Runtime Error Code· An error code from a programming runtime or package manager, like Node.js or npm.

What it means

The module specifier string passed to import() or require() is not a valid module identifier.

How to fix it

  1. Check the specifier for typos or unsupported URL schemes.
  2. Use a bare package name or a relative path starting with ./ or ../.
  3. For absolute paths use a file:// URL.

Not affiliated with Node.js. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.