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

Bun package manager detection fails for global installs

Open snelusha opened this issue 2 months ago • 1 comments

What happened?

Bun package manager detection fails in installationInfo.ts due to incorrect path checking. When installed via bun add -g @google/gemini-cli, the detection logic checks:

if (realPath.includes('/.bun/bin'))

However, fs.realpathSync() resolves to:

/home/user/.bun/install/global/node_modules/@google/gemini-cli/dist/index.js

Not /.bun/bin/gemini. The check fails and defaults to npm.

What did you expect to happen?

Bun installations should be detected correctly and use bun add -g @google/gemini-cli@latest for updates

Client information

CLI Version: 0.18.0 Git Commit: 7beccfa03 OS: linux

Login information

No response

Anything else we need to know?

No response

snelusha avatar Dec 01 '25 15:12 snelusha

Fyi @galz10

jacob314 avatar Dec 01 '25 16:12 jacob314

I just noticed the package manager detection also fails for pnpm and pnpx!

snelusha avatar Dec 03 '25 08:12 snelusha