错误代码门户
Node.jsNode.js错误代码

ERR_INVALID_FILE_URL_HOST

invalid file url host

代码 ERR_INVALID_FILE_URL_HOST · Node.js 报告的问题。

使用 file: URL(例如 fs 模块中的某些函数)的 Node.js API 遇到主机不兼容的文件 URL。这种情况只会发生在仅支持 localhost 或空主机的类 Unix 系统上。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

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.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。