[Pkg-javascript-devel] Bug#1117466: Bug#1117466: npm: Executing command npm always fails
Yadd
yadd at debian.org
Mon Oct 6 06:34:27 BST 2025
Control: severity -1 important
Le 06/10/2025 à 07:12, Huey Chen a écrit :
> Package: npm
> Version: 9.2.0~ds1-3
> Severity: grave
> Justification: renders package unusable
> X-Debbugs-Cc: horsey_guy at proton.me
>
> Dear Maintainer,
>
> Any execution of `npm` returns:
> ```
> /usr/share/nodejs/npm/lib/cli.js:48
> throw err
> ^
>
> TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function. Received an instance of Object
> at promisify (node:internal/util:440:3)
> at Object.<anonymous> (/usr/share/nodejs/cacache/lib/util/glob.js:4:14)
> at Module._compile (node:internal/modules/cjs/loader:1688:14)
> at Module._extensions..js (node:internal/modules/cjs/loader:1820:10)
> at Module.load (node:internal/modules/cjs/loader:1423:32)
> at Module._load (node:internal/modules/cjs/loader:1246:12)
> at TracingChannel.traceSync (node:diagnostics_channel:322:14)
> at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
> at Module.require (node:internal/modules/cjs/loader:1445:12)
> at require (node:internal/modules/helpers:135:16) {
> code: 'ERR_INVALID_ARG_TYPE'
> }
> ```
>
> This happened suddenly, a few months after the last time I used `npm`.
Hi,
I'm using this version of npm everyday without having any problems and
npm's autopkgtest succeeds (it embeds npm command-line tests), could you
share more information ?
More information about the Pkg-javascript-devel
mailing list