You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fetchNpmDeps may need some fixes for nodejs 24 #474535
I can confirm the above: gemini-cli builds with nodejs_22 and that patch fixes the warning, but not the main error.
This seems to only affect npm specifically, a yarn package like akkoma-fe or a pnpm package like bash-language-server build fine.
However that patch will cause another failure with nodejs_22, probably those variables need to be changed somewhere else too.
logs
gemini-cli> npm error code 1gemini-cli> npm error path /build/source/node_modules/keytargemini-cli> npm error command failedgemini-cli> npm error command sh -c prebuild-install || npm run buildgemini-cli> npm error > [email protected] buildgemini-cli> npm error > node-gyp rebuildgemini-cli> npm error prebuild-install warn install EACCES: permission denied, access '/nix/store/f809vh28jcmvl2pqq5c16dkhpcfakciv-gemini-cli-0.22.2-npm-deps'gemini-cli> npm error gyp info it worked if it ends with okgemini-cli> npm error gyp info using [email protected]gemini-cli> npm error gyp info using [email protected] | linux | x64gemini-cli> npm error gyp info find Python using Python version 3.13.11 found at "/nix/store/qzc04a3npl70cyyy6flnnrb2ig3kayxm-python3-3.13.11/bin/python3"gemini-cli> npm error gyp http GET https://nodejs.org/download/release/v22.21.1/node-v22.21.1-headers.tar.gzgemini-cli> npm error gyp http fetch GET https://nodejs.org/download/release/v22.21.1/node-v22.21.1-headers.tar.gz attempt 1 failed with EAI_AGAINgemini-cli> npm error gyp WARN install got an error, rolling back installgemini-cli> npm error gyp ERR! configure errorgemini-cli> npm error gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v22.21.1/node-v22.21.1-headers.tar.gz failed, reason: getaddrinfo EAI_AGAIN nodejs.orggemini-cli> npm error gyp ERR! stack at ClientRequest.<anonymous> (/nix/store/h0rwbhyq01dy7yaf2aimbnrbq7p254db-nodejs-22.21.1/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)gemini-cli> npm error gyp ERR! stack at ClientRequest.emit (node:events:519:28)gemini-cli> npm error gyp ERR! stack at emitErrorEvent (node:_http_client:107:11)gemini-cli> npm error gyp ERR! stack at _destroy (node:_http_client:954:9)gemini-cli> npm error gyp ERR! stack at onSocketNT (node:_http_client:974:5)gemini-cli> npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:91:21)gemini-cli> npm error gyp ERR! System Linux 6.18.1-zen1gemini-cli> npm error gyp ERR! command "/nix/store/h0rwbhyq01dy7yaf2aimbnrbq7p254db-nodejs-22.21.1/bin/node" "/nix/store/h0rwbhyq01dy7yaf2aimbnrbq7p254db-nodejs-22.21.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gemini-cli> npm error gyp ERR! cwd /build/source/node_modules/keytargemini-cli> npm error gyp ERR! node -v v22.21.1gemini-cli> npm error gyp ERR! node-gyp -v v11.2.0gemini-cli> npm error gyp ERR! not okgemini-cli> npm error Log files were not written due to an error writing to the directory: /nix/store/f809vh28jcmvl2pqq5c16dkhpcfakciv-gemini-cli-0.22.2-npm-deps/_logsgemini-cli> npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
(I've mostly worked pnpm and not so much with npm, but I'll give this a go.)
I didn't get too far, tried to find a single npm package that caused this but it was getting tedious. Unlikley, but maybe it has something to do with upstreams using multiple package managers (there was package-lock.json and a yarn.lock in one repo, and package-lock.json and pnpm-workspace.yaml but no pnpm-lock.yaml in another repo). Architecture specific npm packages like @esbuild/linux-x64, @esbuild/darwin-arm64 or optional dependencies could be related.
sigh, lovely. I’ll try to take a look at this tomorrow, I am hoping it’s not that bad of a breakage… I’m happier seeing that it’s only a subset of packages though.
changed the title [-][staging-next] fetchNpmDeps may need some fixes for nodejs 24[/-][+]fetchNpmDeps may need some fixes for nodejs 24[/+]on Dec 31, 2025
I'm updating the yaak package (2025.6.1 → 2026.1.0) and hit this issue. The nodejs_22 workaround didn't help in this case. It still fails with ENOTCACHED on various packages (cross-spawn, uuid, etc.). The package uses npm workspaces extensively, which seems to trigger this.
Should I open the PR against staging/staging-next, or wait until this (#470517) lands in master?
Edit: npmFlags = [ "--legacy-peer-deps" ]; also didn't work in this case.
Activity
Aleksanaa commentedon Dec 27, 2025
The warnings are not related, but they can probably be fixed by:
But this causes a mass rebuild because gtk4 and some other libraries are affected.
Aleksanaa commentedon Dec 27, 2025
CC @winterqt @Scrumplex @gepbird
gepbird commentedon Dec 27, 2025
I can confirm the above:
gemini-clibuilds withnodejs_22and that patch fixes the warning, but not the main error.This seems to only affect npm specifically, a yarn package like
akkoma-feor a pnpm package likebash-language-serverbuild fine.However that patch will cause another failure with
nodejs_22, probably those variables need to be changed somewhere else too.logs
(I've mostly worked pnpm and not so much with npm, but I'll give this a go.)
I didn't get too far, tried to find a single npm package that caused this but it was getting tedious. Unlikley, but maybe it has something to do with upstreams using multiple package managers (there was
package-lock.jsonand ayarn.lockin one repo, andpackage-lock.jsonandpnpm-workspace.yamlbut nopnpm-lock.yamlin another repo). Architecture specific npm packages like@esbuild/linux-x64,@esbuild/darwin-arm64or optional dependencies could be related.Aleksanaa commentedon Dec 27, 2025
And not all
buildNpmPackage/fetchNpmDepspackages are affected, I've checked many of them and only a small portion is.activitywatch: https://hydra.nixos.org/build/316803658/nixlog/7
mattermost: https://hydra.nixos.org/build/316957819/nixlog/5
coc-yank: https://hydra.nixos.org/build/316804887/nixlog/4
promptfoo: https://hydra.nixos.org/build/316817140/nixlog/3
Scrumplex commentedon Dec 27, 2025
Node.js 24 updated to NPM 11.x, so it's most certainly some (undocumented?) breaking change from npm.
winterqt commentedon Dec 27, 2025
sigh, lovely. I’ll try to take a look at this tomorrow, I am hoping it’s not that bad of a breakage… I’m happier seeing that it’s only a subset of packages though.
[-][staging-next] fetchNpmDeps may need some fixes for nodejs 24[/-][+]fetchNpmDeps may need some fixes for nodejs 24[/+]winterqt commentedon Dec 31, 2025
^ confirmed that that PR does fix it, have edited the description accordingly so that this'll auto-close
Aleksanaa commentedon Dec 31, 2025
Looks like
npmFlags = [ "--legacy-peer-deps" ];is the best workaround for now: #475608Edit: no it didn't work for some packages
pin node packages version
pin node packages version
librechat: fix build by pinning to nodejs_22
librechat: fix build by pinning to nodejs_22
librechat: fix build by pinning to nodejs_22
anytype: fix build by pinning to nodejs_22
anytype: fix build by pinning to nodejs_22
bruno-cli: fix build by pinning to nodejs_22
bruno-cli: fix build by pinning to nodejs_22
bruno-cli: fix build by pinning to nodejs_22
bruno-cli: fix build by pinning to nodejs_22
bruno-cli: fix build by pinning to nodejs_22
Bad3r commentedon Jan 24, 2026
I'm updating the yaak package (2025.6.1 → 2026.1.0) and hit this issue. The nodejs_22 workaround didn't help in this case. It still fails with
ENOTCACHEDon various packages (cross-spawn, uuid, etc.). The package uses npm workspaces extensively, which seems to trigger this.Should I open the PR against staging/staging-next, or wait until this (#470517) lands in master?
Edit:
npmFlags = [ "--legacy-peer-deps" ];also didn't work in this case.Edit: also related to #481866
JohnFlowerful commentedon Feb 23, 2026
This issue was a problem with dependency resolution. It was fixed with npm version 11.10.1: npm/cli#8981
anytype: fix build by pinning to nodejs_22
TerrorJack commentedon Apr 24, 2026
this can be closed now that the default npm version is 11.11.0 for nodejs_24, right?
Build LibreChat with the nixpkgs default nodejs
Build LibreChat with the nixpkgs default nodejs (#9)