⚠️ Deprecated `node-domexception` warning during global install of `@google/gemini-cli`
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
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
DOMExceptionimplementation instead of using outdated polyfills likenode-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
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-blobdepends onnode-domexceptionfor compatibility with Node versions that might not haveDOMException.- Modern Node has it built-in, but these packages haven’t cut the cord yet — or they still need to support older Node versions.
-
Check if upstream is aware.
- The real fix is for
fetch-blobornode-fetchto drop the polyfill. - Or for
gaxiosto dropnode-fetchentirely if it’s possible.
- The real fix is for
-
Your options:
- Live with the warning — it’s harmless bloat, but not dangerous.
- File an issue or PR upstream: the fix is for
fetch-blobto stop depending onnode-domexceptionwhen the runtime supportsDOMExceptionnatively. - 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. '
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!
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
same problem too
dev@workstation:~$ npm install -g @google/gemini-cli
npm warn deprecated [email protected]: Use your platform's native DOMException instead
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
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...)
I request to reopen issue on https://github.com/google-gemini/gemini-cli/issues/15332 otherwise this being ignored. :( @gemini-cli-robot
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!
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
why is this happening ...?
tengo el mismo problema , en youtube noencontre solucion tampoco , como se puede solucionar eso?
Same problem here...
same problem here
Fedora 43
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.
I have the same warning on WSL Ubuntu
npm warn deprecated [email protected]: Use your platform's native DOMException instead
Same issue on VS Code in macOS
Same warning here while installing gemini CLI on Windows 11 via npm install -g @google/gemini-cli !
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
FYI there is another deprecation warning during install, this time from
[email protected](viagaxios -> 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