[Pkg-javascript-devel] Bug#1117466: npm: Executing command npm always fails

horsey_guy horsey_guy at proton.me
Thu Nov 20 03:47:35 GMT 2025


New error:
```
/usr/share/nodejs/npm/lib/cli.js:48
    throw err
    ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /usr/share/node_modules/glob/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:313:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:660:9)
    at resolveExports (node:internal/modules/cjs/loader:650:36)
    at Module._findPath (node:internal/modules/cjs/loader:717:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1369:27)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Module._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v22.21.1
```
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - horsey_guy at proton.me - 0xEC8A06ED.asc
Type: application/pgp-keys
Size: 840 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20251120/e3c3cd88/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 343 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20251120/e3c3cd88/attachment.sig>


More information about the Pkg-javascript-devel mailing list