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

ERR_PACKAGE_MAP_EXTERNAL_FILE

package map external file

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

模块尝试使用包映射解析裸说明符,但导入文件不位于映射中定义的任何包内。 要修复此错误,请确保导入文件位于包映射中列出的包目录之一内,或者添加一个新的包条目,其 url 覆盖导入文件。

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

A module attempted to resolve a bare specifier using the package map, but the importing file is not located within any package defined in the map. To fix this error, ensure the importing file is inside one of the package directories listed in the package map, or add a new package entry whose url covers the importing file.

故障排除与诊断链接

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