gemini-cli - 💡(How to fix) Fix npm install -g shows deprecation warning for [email protected] [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#24909Fetched 2026-04-09 08:17:35
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

npm warn deprecated [email protected]: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.

Code Example

npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
RAW_BUFFERClick to expand / collapse

What happened?

When installing @google/gemini-cli globally via npm, the following deprecation warning appears:

npm warn deprecated [email protected]: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.

This warning suggests that one of the transitive dependencies relies on [email protected], which is no longer maintained.

What did you expect to happen?

Installation without deprecation warnings. The dependency prebuild-install should be updated or replaced with a maintained alternative.

Client information

<details> <summary>Client Information</summary>

N/A — the bug occurs during npm install -g @google/gemini-cli before the CLI can be run.

OS: Windows 10/11

</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

Update or replace the transitive dependency [email protected] with a maintained alternative to resolve the deprecation warning.

Guidance

  • Identify the package that depends on [email protected] by analyzing the dependency tree of @google/gemini-cli.
  • Check if there are any updates available for the identified package that use a maintained version of prebuild-install or an alternative.
  • Consider opening an issue or pull request with the maintainers of @google/gemini-cli to update their dependencies.
  • If a maintained alternative is available, consider using that instead of [email protected] directly if possible.

Notes

The solution may require coordination with the maintainers of @google/gemini-cli or its dependencies, and may not be immediately resolvable by the user.

Recommendation

Apply workaround: Update or replace the transitive dependency [email protected] with a maintained alternative, as this is a deprecation warning rather than a critical error, and an upgrade to a fixed version is not clearly implied.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING