gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

⚠️ Deprecated `node-domexception` warning during global install of `@google/gemini-cli`

Open Willseed opened this issue 1 year ago • 21 comments

What happened?

When running a global install of @google/gemini-cli, the following deprecation warning appears:

What did you expect to happen?

No deprecation warnings should appear during installation. The CLI and its dependencies should rely on the platform's native DOMException implementation instead of using outdated polyfills like node-domexception.

Client information

  • OS: macOS 15.5 (24F74)
  • Hardware: Apple M4 Pro
  • Node.js: v22.17.0
  • npm: 11.4.2
  • Install command:
    npm i -g @google/gemini-cli
    
    

Login information

No response

Anything else we need to know?

No response

Willseed avatar Jul 10 '25 15:07 Willseed

What happened?

When running a global install of @google/gemini-cli, the following deprecation warning appears:

What did you expect to happen?

No deprecation warnings should appear during installation. The CLI and its dependencies should rely on the platform's native DOMException implementation instead of using outdated polyfills like node-domexception.

Client information

  • OS: macOS 15.5 (24F74)
  • Hardware: Apple M4 Pro
  • Node.js: v22.17.0
  • npm: 11.4.2
  • Install command: npm i -g @google/gemini-cli

Login information

No response

Anything else we need to know?

No response

Harin2212 avatar Jul 10 '25 15:07 Harin2212

Same:


~/.../GitHub/Puzzles_for_AIs $ npm ls node-domexception -g                                                /data/data/com.termux/files/usr/lib                  └─┬ @google/[email protected]                          └─┬ [email protected]                                       └─┬ [email protected]                                   └─┬ [email protected]                                   └── [email protected]                                                                       ~/.../GitHub/Puzzles_for_AIs $

Only in Termux, where:

npm --version 11.4.2

ChatGPT: '

  • You can’t fix this directly. The chain is buried inside @google/gemini-cli’s dependency tree.
  • fetch-blob depends on node-domexception for compatibility with Node versions that might not have DOMException.
  • Modern Node has it built-in, but these packages haven’t cut the cord yet — or they still need to support older Node versions.
  1. Check if upstream is aware.

    • The real fix is for fetch-blob or node-fetch to drop the polyfill.
    • Or for gaxios to drop node-fetch entirely if it’s possible.
  2. Your options:

    • Live with the warning — it’s harmless bloat, but not dangerous.
    • File an issue or PR upstream: the fix is for fetch-blob to stop depending on node-domexception when the runtime supports DOMException natively.
    • Fork @google/gemini-cli — impractical, but possible.
    • Wrap the CLI in a container or script so you don’t have to see the warning every time. '

Manamama avatar Jul 15 '25 15:07 Manamama

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 03 '25 21:12 gemini-cli[bot]

hi team, I got the same error: npm warn deprecated [email protected]: Use your platform's native DOMException instead Gemini CLI 0.19.4 npm install -g @google/gemini-cli

huangsen365 avatar Dec 07 '25 07:12 huangsen365

same problem too

dev@workstation:~$ npm install -g @google/gemini-cli
npm warn deprecated [email protected]: Use your platform's native DOMException instead

arthiccc avatar Dec 17 '25 13:12 arthiccc

same problem

npm -v 11.6.2

node -v v18.19.1

npm install -g @google/gemini-cli npm warn deprecated [email protected]: Use your platform's native DOMException instead

And Gemini Cli not install in WSL2

Teemz avatar Dec 18 '25 21:12 Teemz

It also shows for me (in a rather vanilla Ubuntu), but it is a warning, not an error: a feature (of a warning), not a bug.

I have just been ignoring it, as gemini has always installed since July 2025 despite that warning (unless gemini did not install, due to other real errors, of course...)

Manamama avatar Dec 19 '25 06:12 Manamama

I request to reopen issue on https://github.com/google-gemini/gemini-cli/issues/15332 otherwise this being ignored. :( @gemini-cli-robot

huangsen365 avatar Dec 19 '25 17:12 huangsen365

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 21 '25 00:12 gemini-cli[bot]

Can we reopen this issue?

I have the same warning on WSL Ubuntu

npm warn deprecated [email protected]: Use your platform's native DOMException instead

lampnis avatar Dec 22 '25 09:12 lampnis

why is this happening ...?

papahuge avatar Jan 01 '26 15:01 papahuge

tengo el mismo problema , en youtube noencontre solucion tampoco , como se puede solucionar eso?

francosivori94-bot avatar Jan 04 '26 22:01 francosivori94-bot

Same problem here...

DaviSiqueirando avatar Jan 17 '26 02:01 DaviSiqueirando

same problem here

Fedora 43

alexander-newton avatar Jan 17 '26 13:01 alexander-newton

This just a depreciation warning, not an error or a problem. This won't stop gemini-cli from updating or installing. If you are having issues with gemini-cli updating or installing, this is not the problem.

Note: If you're having issues installing gemini-cli, it is likely a problem with your $PATH and NOT the depreciation warning.

EhrenTheMan avatar Jan 29 '26 15:01 EhrenTheMan

I have the same warning on WSL Ubuntu

npm warn deprecated [email protected]: Use your platform's native DOMException instead

Nick9c avatar Jan 29 '26 22:01 Nick9c

Same issue on VS Code in macOS

captain-marlow avatar Feb 01 '26 04:02 captain-marlow

Same warning here while installing gemini CLI on Windows 11 via npm install -g @google/gemini-cli !

matteo-martinelli avatar Feb 01 '26 14:02 matteo-martinelli

FYI there is another deprecation warning during install, this time from [email protected] (via gaxios -> rimraf). I opened a separate issue with details here: https://github.com/google-gemini/gemini-cli/issues/18327

antonio-mello-ai avatar Feb 04 '26 17:02 antonio-mello-ai

FYI there is another deprecation warning during install, this time from [email protected] (via gaxios -> rimraf). I opened a separate issue with details here: #18327

Yes, i just noticed today.. Anyways, for now I moved to opencode, as with my free tier API key limits were hit too fast! Also, that project seems more polished, even though I miss vim mode

lampnis avatar Feb 04 '26 21:02 lampnis