Global install on Node.js 24 warns about deprecated @github/keytar and unapproved install scripts

Open
#30,285 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
cli, devops

Research direction

The warnings come from the dependency tree of the global install, so start from the package manifest that declares @github/keytar and node-pty, then check which versions resolve. Verify the deprecation and the allowScripts warning by reproducing npm install -g @google/gemini-cli on Node.js 24 and recording the npm version. Done means the install runs without the deprecation warning or with the install-script approval handled, and the CLI still starts afterward.

Written by the indexing model from the issue text.

Description

status/need-triage
What happened?

Running npm install -g @google/gemini-cli with Node.js 24 completes but produces a deprecation warning for @github/[email protected] and install-script approval warnings for @github/keytar and node-pty:

$ npm install -g @google/gemini-cli
npm warn deprecated @github/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 7 packages in 3s
npm warn install-scripts 2 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @github/[email protected] (install: node script/install.js || npm run build)
npm warn install-scripts   [email protected] (install: node-gyp rebuild; postinstall: node scripts/post-install.js)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=@github/keytar,node-pty` to allow these scripts once, or `npm config set allow-scripts=@github/keytar,node-pty --location=user` to allow them for all global installs.

The output reports a completed installation, not a fatal installation error. Whether the CLI starts successfully afterward has not yet been verified.

What did you expect to happen?

Gemini CLI installs without deprecated dependency warnings, with clear guidance on any required native dependency install-script approvals for the npm version in use.

Client information
  • Node.js: 24 (exact patch version not recorded)
  • npm: current installed version (exact version not yet recorded)
  • Operating system: not yet recorded
  • Gemini CLI version and /about output: not yet recorded
Login information

Not applicable to the installation step.

Anything else we need to know?

Related: #21537, which was closed as completed and concerned deprecated prebuild-install through the older keytar dependency. That issue proposed switching to @github/keytar; the installation output above now reports @github/[email protected] itself as deprecated.

A search of open and closed issues did not find an exact match for the allowScripts / --allow-scripts warnings. The suggested script-approval commands have not yet been tested for this report.

Dominant language
TypeScript
Stars
109k
Forks
15k
Avg merge
1d 1h
Merged PRs (30d)
106

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google-gemini/gemini-cli

All issues in google-gemini/gemini-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.