ERR_INVALID_FILE_URL_HOST


一个使用 Node.js 的 API 消费 file: URL(例如 fs 模块中的某些函数)时,遇到了具有不兼容主机的文件 URL。此情况只会发生在类 Unix 系统上,因为这些系统只支持 localhost 或空主机。

【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.】