ERR_INVALID_URL_SCHEME


试图将不兼容方案(协议)的网址用于特定目的。 它仅用于 fs 模块中的 WHATWG 网址 API 支持(仅接受具有 'file' 方案的网址),但将来也可能用于其他 Node.js API。

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.