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

Huey Chen horsey_guy at proton.me
Mon Oct 6 06:12:38 BST 2025


Package: npm
Version: 9.2.0~ds1-3
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: horsey_guy at proton.me

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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

- -- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.16.9+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages npm depends on:
ii  ca-certificates                                   20250419
ii  node-abbrev                                       1.1.1+~1.1.2-1
ii  node-agent-base                                   7.1.4~0~2025070717-2
ii  node-aproba                                       2.0.0-3
ii  node-archy                                        1.0.0-7
ii  node-base64-js                                    1.5.1+dfsg+~1.3.0-2
ii  node-binary-extensions                            2.2.0-2
ii  node-cacache                                      17.0.3+~cs10.3.7-2
ii  node-chalk                                        5.6.0-1
ii  node-chownr                                       2.0.0-3
ii  node-ci-info                                      4.0.0+~cs1.1.0-1
ii  node-cli-table [node-cli-table3]                  0.3.11+~cs0.13.4-3
ii  node-colors                                       1.4.0-4
ii  node-columnify                                    1.6.0+~1.5.1-1
ii  node-css-loader [node-postcss-selector-parser]    6.8.1+~cs14.0.17-1
ii  node-css-selector-tokenizer [node-cssesc]         0.8.0+~cs4.8.3-1
ii  node-debug                                        4.4.1+~4.1.12-1
ii  node-depd                                         2.0.0-2
ii  node-diff                                         5.0.0~dfsg+~5.0.1-4
ii  node-encoding                                     0.1.13-2
ii  node-events                                       3.3.0+~3.0.0-3
ii  node-glob                                         10.3.6+~cs0.4.15-1
ii  node-got                                          11.8.5+~cs58.13.36-5
ii  node-graceful-fs                                  4.2.10-1
ii  node-gyp                                          11.4.0+~5.0.0-2
ii  node-hosted-git-info                              6.1.1-2
ii  node-http-proxy-agent                             7.0.2~0~2025070717-2
ii  node-https-proxy-agent                            7.0.6~0~2025070717-2
ii  node-ieee754                                      1.2.1-3
ii  node-ini                                          3.0.1-2
ii  node-ip                                           2.0.1+~1.1.3-3
ii  node-ip-regex                                     4.3.0+~4.1.1-1
ii  node-json-parse-better-errors                     1.0.2+~cs3.3.1-3
ii  node-jsonparse                                    1.3.1-10
ii  node-lru-cache                                    10.0.1-3
ii  node-minimatch                                    9.0.3-6
ii  node-minipass                                     5.0.0+~cs10.3.21-3
ii  node-mkdirp                                       2.1.6+~cs5.2.1-2
ii  node-ms                                           2.1.3+~cs0.7.31-3
ii  node-negotiator                                   0.6.3+~0.6.1-1
ii  node-nopt                                         5.0.0-4
ii  node-normalize-package-data                       4.0.1+~2.4.1-1
ii  node-npm-bundled                                  2.0.1-2
ii  node-npm-package-arg                              10.0.0+~3.0.0-2
ii  node-npmlog                                       7.0.1+~4.1.4-1
ii  node-once                                         1.4.1-1
ii  node-p-map                                        4.0.0+~3.1.0+~3.0.1-2
ii  node-promise-retry                                2.0.1-4
ii  node-promzard                                     0.3.0-2
ii  node-read                                         1.0.7-5
ii  node-read-package-json [node-npm-normalize-packa  5.0.2+~2.0.0-2
    ge-bin]
ii  node-rimraf                                       3.0.2-2
ii  node-semver                                       7.6.1+~7.5.8-2
ii  node-ssri                                         9.0.1-3
ii  node-string-width [node-emoji-regex]              4.2.3+~cs13.2.3-1
ii  node-strip-ansi                                   6.0.1-2
ii  node-tar                                          6.2.1+~cs7.0.8-1
ii  node-text-table                                   0.2.0-4
ii  node-validate-npm-package-license                 3.0.4-2
ii  node-validate-npm-package-name                    5.0.0+~4.0.0-1
ii  node-which                                        2.0.2+~cs1.3.2-3
ii  node-wrappy                                       1.0.2-3
ii  node-write-file-atomic                            4.0.2+~4.0.0-2
ii  node-yallist                                      4.0.0+~4.0.1-2
ii  nodejs                                            22.18.0+dfsg+~cs22.17.2-2

Versions of packages npm recommends:
ii  git       1:2.51.0+next.20250825-1
ii  node-tap  16.3.7+ds3+~cs49.5.20-1

Versions of packages npm suggests:
ii  node-opener  1.5.2+~1.4.0-1

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQTsigbt7ZnibbpjLSwmygukCVXDVgUCaONPuwAKCRAmygukCVXD
VmvgAQCubX5gvu3CqZwZkm5IBJLaT3k8ut/ISCpNPFaEYwPbhQEAnzJLK29YtF8/
OMgtWrFWd8vodmIrMsq+ldqncIyfcAI=
=nORZ
-----END PGP SIGNATURE-----



More information about the Pkg-javascript-devel mailing list