Mention alternative installation instructions (pnpm)
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
use pnpm add -g @google/gemini-cli to install with pnpm
If we go down this route we should probably also mention yarn or Bun
This is a great callout, but documenting these additional installation methods are currently out of scope.
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 This issue was closed 7 months ago. Please consider opening a new issue instead of leaving a comment here.