ERR_INVALID_FILE_URL_PATH
使用 file:
网址的 Node.js API(例如 fs
模块中的某些函数)遇到路径不兼容的文件网址。确定是否可以使用路径的确切语义是平台相关的。
¥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.
抛出的错误对象包含一个 input
属性,该属性包含无效 file:
URL 的 URL 对象。
¥The thrown error object includes an input
property that contains the URL object
of the invalid file:
URL.