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

ERR_INVALID_FILE_URL_PATH

invalid file url path

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

使用 file: URL(例如 fs 模块中的某些函数)的 Node.js API 遇到路径不兼容的文件 URL。确定是否可以使用路径的确切语义取决于平台。 抛出的错误对象包含一个输入属性,该属性包含无效文件的 URL 对象:URL。

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 path. The exact semantics for determining whether a path can be used is platform-dependent. The thrown error object includes an input property that contains the URL object of the invalid file: URL.

故障排除与诊断链接

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