Skip to content
JS
Node.js error

ERR_PACKAGE_MAP_EXTERNAL_FILE

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. $ node --experimental-package-map=./package-map.json /tmp/script.js Error [ERR_PACKAGE_MAP_EXTERNAL_FILE]: Cannot resolve "dep-a" from "/tmp/script.js": file is not within...

Reference entryNode.jsFetched

Node.js documentation lists the code ERR_PACKAGE_MAP_EXTERNAL_FILE without the printed message text.

Category
Node.js error codes
Severity
error
Versions
Added in v26.4.0
Runtime
node
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: Node.js documentation. Data fetched 2026-09-25T01:43:12.380Z.