node-authenticate-pam icon indicating copy to clipboard operation
node-authenticate-pam copied to clipboard

Cannot install on Ubuntu 22.04 using Node 23

Open MichaelKremser opened this issue 11 months ago • 1 comments

Node version 23 is installed using Snap, npm is at version 11.1.0. Running npm i authenticate-pam yields to these messages:

npm error code 7
npm error path .../node_modules/authenticate-pam
npm error command failed
npm error command sh -c node-gyp rebuild
npm error A complete log of this run can be found in: .../.npm/_logs/2025-01-30T22_43_10_652Z-debug-0.log

In the mentioned log file I find these lines:

34 verbose stack Error: command failed
34 verbose stack     at promiseSpawn (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22)
34 verbose stack     at spawnWithShell (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10)
34 verbose stack     at promiseSpawn (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12)
34 verbose stack     at runScriptPkg (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:77:13)
34 verbose stack     at runScript (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:9:12)
34 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:331:17
34 verbose stack     at run (/usr/local/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:67:22)
34 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:84:9
34 verbose stack     at new Promise (<anonymous>)
34 verbose stack     at callLimit (/usr/local/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:35:69)
35 verbose pkgid [email protected]

MichaelKremser avatar Jan 30 '25 22:01 MichaelKremser

Perhaps we need to update dependencies like nan. PRs welcome.

Rush avatar Feb 05 '25 15:02 Rush