Skip to content

[BUG] npm is failing to execute after nodejs update. #8759

@fr13nd230

Description

@fr13nd230

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm --help
/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

The problem even occur with other commands for an instance npm run command

Expected Behavior

npm to be working normally!

Steps To Reproduce

Node.js has been updated to v22.21.1 and system started failing I even couldn't execute npm -v

Environment

  • npm: 9.2.0~ds1-3
  • Node.js: v22.21.1
  • OS Name: Debian forky/sid x86_64
  • System Model Name: ThinkPad X1 Carbon Gen 11
  • npm config:
npm config ls

This won't work for me at all, npm is broken I've removed it and reinstalled it but nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions