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

horsey_guy horsey_guy at proton.me
Sun Nov 9 14:22:35 GMT 2025


But then with a downgrade, the same error message appears.

Also note that this occurs on a fresh VM with Debian Sid/Experimental packages.

```
/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:409:3)
    at Object.<anonymous> (/usr/share/nodejs/cacache/lib/util/glob.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/usr/share/nodejs/cacache/lib/rm.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1521:14) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.19.5
```
-------------- 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/20251109/4166388f/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/20251109/4166388f/attachment.sig>


More information about the Pkg-javascript-devel mailing list