Auto detect pnpm global installation path for macOS and Windows (#22748)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Coco Sheng <cocosheng@google.com>
This commit is contained in:
tison
2026-05-21 05:26:11 +08:00
committed by GitHub
parent 5c4420cc27
commit 96903d50a1

View File

@@ -119,7 +119,9 @@ export function getInstallationInfo(
// Check for pnpm
if (
realPath.includes('/.pnpm/global') ||
realPath.includes('/.local/share/pnpm')
realPath.includes('/.local/share/pnpm') ||
realPath.includes('/Library/pnpm/global/') ||
realPath.includes('/AppData/Local/pnpm/global/')
) {
const updateCommand = 'pnpm add -g @google/gemini-cli@latest';
return {