Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_FILE_URL_HOST

invalid file url host

Code ERR_INVALID_FILE_URL_HOST · An issue reported by Node.js.

A Node.js API that consumes file: URLs (such as certain functions in the fs module) encountered a file URL with an incompatible host. This situation can only occur on Unix-like systems where only localhost or an empty host is supported.

Troubleshooting and diagnostic links

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