Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1270888 > unrolled thread

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

Started byhorsey_guy <horsey_guy@proton.me>
First post2025-11-20 04:50 +0100
Last post2025-11-22 10:00 +0100
Articles 5 — 2 participants

Back to article view | Back to linux.debian.bugs.dist

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1117466: [Pkg-javascript-devel] npm: Executing command npm always fails horsey_guy <horsey_guy@proton.me> - 2025-11-20 04:50 +0100
    Bug#1117466: [Pkg-javascript-devel] npm: Executing command npm always fails horsey_guy <horsey_guy@proton.me> - 2025-11-21 04:30 +0100
      Bug#1117466: [Pkg-javascript-devel] npm: Executing command npm always fails Andrey Rakhmatullin <wrar@debian.org> - 2025-11-21 08:50 +0100
        Bug#1117466: [Pkg-javascript-devel] npm: Executing command npm always fails horsey_guy <horsey_guy@proton.me> - 2025-11-22 03:40 +0100
          Bug#1117466: [Pkg-javascript-devel] npm: Executing command npm always fails Andrey Rakhmatullin <wrar@debian.org> - 2025-11-22 10:00 +0100

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

Fromhorsey_guy <horsey_guy@proton.me>
Date2025-11-20 04:50 +0100
SubjectBug#1117466: [Pkg-javascript-devel] npm: Executing command npm always fails
Message-ID<LT3Qd-ehPX-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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
```

[toc] | [next] | [standalone]


#1271015

Fromhorsey_guy <horsey_guy@proton.me>
Date2025-11-21 04:30 +0100
Message-ID<LTq0p-ewUE-1@gated-at.bofh.it>
In reply to#1270888

[Multipart message — attachments visible in raw view] — view raw

> Doing what ?
> Unless we can reproduce, we can't fix anything.

Executing `npm` by itself.

Can still reproduce on a fresh installation on a VM with Sid/Experimental repositories and KDE Plasma, but this error appears on the VM:

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

TypeError: Class extends value #<Object> is not a constructor or null
    at Object.<anonymous> (/usr/share/nodejs/npm/node_modules/fs-minipass/index.js:141:4)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Module._load (node:internal/modules/cjs/loader:1263:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/usr/share/nodejs/pacote/lib/fetcher.js:14:13)

Node.js v22.21.1
```

[toc] | [prev] | [next] | [standalone]


#1271028

FromAndrey Rakhmatullin <wrar@debian.org>
Date2025-11-21 08:50 +0100
Message-ID<LTu41-eA17-5@gated-at.bofh.it>
In reply to#1271015

[Multipart message — attachments visible in raw view] — view raw

On Fri, Nov 21, 2025 at 03:20:38AM +0000, horsey_guy wrote:
>TypeError: Class extends value #<Object> is not a constructor or null
>    at Object.<anonymous> (/usr/share/nodejs/npm/node_modules/fs-minipass/index.js:141:4)


This is because of the change in node-minipass 5.0.0+~cs10.3.21-5, 
downgrading it to -4 fixes it.


-- 
WBR, wRAR

[toc] | [prev] | [next] | [standalone]


#1271114

Fromhorsey_guy <horsey_guy@proton.me>
Date2025-11-22 03:40 +0100
Message-ID<LTLHz-eLMk-1@gated-at.bofh.it>
In reply to#1271028

[Multipart message — attachments visible in raw view] — view raw

On Thursday, November 20th, 2025 at 11:42 PM, Andrey Rakhmatullin <wrar@debian.org> wrote:

> This is because of the change in node-minipass 5.0.0+~cs10.3.21-5,
> downgrading it to -4 fixes it.

After the downgrade, this error appears:
```
/usr/share/nodejs/npm/lib/cli.js:48
    throw err
    ^

TypeError: Cannot read properties of undefined (reading 'apply')
    at Object.value [as pause] (/usr/share/nodejs/npm/lib/utils/log-shim.js:15:30)
    at new Display (/usr/share/nodejs/npm/lib/utils/display.js:10:9)
    at <instance_members_initializer> (/usr/share/nodejs/npm/lib/npm.js:45:14)
    at new Npm (/usr/share/nodejs/npm/lib/npm.js:26:1)
    at module.exports (/usr/share/nodejs/npm/lib/cli.js:78:15)
    at Object.<anonymous> (/usr/share/nodejs/npm/bin/npm-cli.js:2:25)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Module._load (node:internal/modules/cjs/loader:1263:12)

Node.js v22.21.1
```

[toc] | [prev] | [next] | [standalone]


#1271132

FromAndrey Rakhmatullin <wrar@debian.org>
Date2025-11-22 10:00 +0100
Message-ID<LTRDj-eRcI-3@gated-at.bofh.it>
In reply to#1271114

[Multipart message — attachments visible in raw view] — view raw

On Sat, Nov 22, 2025 at 02:35:03AM +0000, horsey_guy wrote:
>After the downgrade, this error appears:
>```
>/usr/share/nodejs/npm/lib/cli.js:48
>    throw err
>    ^
>
>TypeError: Cannot read properties of undefined (reading 'apply')
>    at Object.value [as pause] (/usr/share/nodejs/npm/lib/utils/log-shim.js:15:30)
>    at new Display (/usr/share/nodejs/npm/lib/utils/display.js:10:9)
>    at <instance_members_initializer> (/usr/share/nodejs/npm/lib/npm.js:45:14)
>    at new Npm (/usr/share/nodejs/npm/lib/npm.js:26:1)
>    at module.exports (/usr/share/nodejs/npm/lib/cli.js:78:15)
>    at Object.<anonymous> (/usr/share/nodejs/npm/bin/npm-cli.js:2:25)
>    at Module._compile (node:internal/modules/cjs/loader:1706:14)
>    at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
>    at Module.load (node:internal/modules/cjs/loader:1441:32)
>    at Module._load (node:internal/modules/cjs/loader:1263:12)
>
>Node.js v22.21.1
>```

For me it doesn't.


-- 
WBR, wRAR

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web