Homebrew-installed Gemini CLI shows outdated version warning when actual install is via npm
What happened?
When installing Gemini CLI via npm first, then later installing via Homebrew, the CLI detects it as a Homebrew install and displays the "update available" message directing the user to run brew upgrade. However, brew upgrade does not actually update the package since the CLI is really managed by npm.
- This creates a misleading update path where:
- The CLI believes it was installed via Homebrew.
- Homebrew lists it as installed.
Running brew upgrade has no effect, leaving the CLI outdated.
This can happen on a fresh machine when the user has previously installed via npm without realizing it, then installs via Homebrew assuming it's not installed y
What did you expect to happen?
If the CLI was installed via npm, it should:
- Detect and indicate the correct package manager for updates (npm vs Homebrew).
- Provide a hint that it was also installed with Home Brew but updating there won't have any impact
The update message should accurately reflect how the CLI was actually installed.
Client information
0.1.17, trying to upgrade to 0.1.18
Login information
N/A
Anything else we need to know?
The issue appears to be caused by conflicting installs between npm and Homebrew, with CLI’s update check logic assuming the wrong source.
Repro steps:
- Install Gemini CLI globally via npm.
- Later install Gemini CLI via Homebrew.
- Observe brew upgrade message from CLI.
- Run brew upgrade — package does not update to the latest version.
Possible fix: improve detection logic for install source and provide correct update instructions.
You’ve got two installs fighting each other: you once did a global npm install, later you ran a Homebrew install. The CLI looks at the path, guesses “Homebrew”, tells you to run brew upgrade, but the binary you’re actually running is still the npm one, so nothing changes.
How to fix it fast:
- See what you’re actually calling:
type -a geminiandwhich gemini. - Pick one install method you want to keep. If you want Brew:
npm uninstall -g @google/gemini-cli. Prefer npm? Thenbrew uninstall gemini-cli. - Run
hash -r(bash/zsh) andgemini --versionagain. Now updates will finally work via the manager you kept.
Why it happened: there’s no little metadata file saying “I’m from npm”, so the tool tries to guess from the path and gets it wrong when both copies exist. Easiest improvement (for maintainers): write a tiny install-source.json on install and warn if both npm and Brew are present. A gemini doctor command would also make this obvious.
That’s it. Clean one of them up and you’re good.
I'm pretty confident @MustafaKemal0146's advice is correct. Closing this out.
Will add this for future people. I had the brew version installed and updated but it was complaining there was a new version. Turns out, it check npm and brew was behind for some reason. I uninstalled the brew version to get the latest npm version
@MustafaKemal0146 I have followed your stops and uninstalled gemini-cli via npm, and yet brew upgrade wouldn't upgrade gemini-cli to 0.29.3 even though I see a message saying "Gemini CLI update available: 0.29.2 -> 0.29.3". Any idea?
This issue is still occurring, I have gemini cli only installed via brew and am definitely not getting updates (though I am notified of new version available every time I start it)
This is an issue with homebrew that is out of our control. The bug will remain closed unless someone finds some action the GCLI team can take to fix it.
Google has officially deprecated gemini-cli in Homebrew, setting the official deprecation date to June 18, 2026, and the final disable date to December 18, 2026.