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

Mention alternative installation instructions (pnpm)

Open JustBugReporting opened this issue 1 year ago • 5 comments

What would you like to be added?

It would be great to have ready-made commands using pnpm, instead of npm/npx.

Why is this needed?

pnpm is superior. npm is a thing of the past.

Additional context

No response

JustBugReporting avatar Jun 28 '25 16:06 JustBugReporting

use pnpm add -g @google/gemini-cli to install with pnpm

handylim avatar Jul 01 '25 16:07 handylim

If we go down this route we should probably also mention yarn or Bun

swissspidy avatar Jul 15 '25 09:07 swissspidy

This is a great callout, but documenting these additional installation methods are currently out of scope.

jkcinouye avatar Jul 16 '25 00:07 jkcinouye

On Linux, I found gemini 0.26.0 after installing with npm to work, but with pnpm to throw

 node:internal/modules/cjs/loader:1383
  const err = new Error(message);
              ^
Error: Cannot find module '../cache/memory-cache-store'
Require stack:
- /home/konfekt/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/undici/lib/interceptor/cache.js
- /home/konfekt/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/undici/index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/home/konfekt/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/undici/lib/interceptor/cache.js:7:26)
    at Module._compile (node:internal/modules/cjs/loader:1706:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/konfekt/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/undici/lib/interceptor/cache.js',
    '/home/konfekt/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/undici/index.js'
  ]
}

Konfekt avatar Jan 29 '26 19:01 Konfekt

@Konfekt This issue was closed 7 months ago. Please consider opening a new issue instead of leaving a comment here.

swissspidy avatar Jan 29 '26 19:01 swissspidy