Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_URL_SCHEME

invalid url scheme

Code ERR_INVALID_URL_SCHEME · An issue reported by Node.js.

An attempt was made to use a URL of an incompatible scheme (protocol) for a specific purpose. It is only used in the WHATWG URL API support in the fs module (which only accepts URLs with 'file' scheme), but may be used in other Node.js APIs as well in the future.

Troubleshooting and diagnostic links

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