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

ERR_PACKAGE_PATH_NOT_EXPORTED

package path not exported

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

package.json“exports”字段不会导出请求的子路径。由于导出是封装的,因此未导出的私有内部模块无法通过包解析导入,除非使用绝对 URL。

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

The package.json "exports" field does not export the requested subpath. Because exports are encapsulated, private internal modules that are not exported cannot be imported through the package resolution, unless using an absolute URL.

故障排除与诊断链接

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