mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix: detect pnpm/pnpx in ~/.local (#15254)
Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
@@ -69,7 +69,10 @@ export function getInstallationInfo(
|
|||||||
updateMessage: 'Running via npx, update not applicable.',
|
updateMessage: 'Running via npx, update not applicable.',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (realPath.includes('/.pnpm/_pnpx')) {
|
if (
|
||||||
|
realPath.includes('/.pnpm/_pnpx') ||
|
||||||
|
realPath.includes('/.cache/pnpm/dlx')
|
||||||
|
) {
|
||||||
return {
|
return {
|
||||||
packageManager: PackageManager.PNPX,
|
packageManager: PackageManager.PNPX,
|
||||||
isGlobal: false,
|
isGlobal: false,
|
||||||
@@ -103,7 +106,10 @@ export function getInstallationInfo(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for pnpm
|
// Check for pnpm
|
||||||
if (realPath.includes('/.pnpm/global')) {
|
if (
|
||||||
|
realPath.includes('/.pnpm/global') ||
|
||||||
|
realPath.includes('/.local/share/pnpm')
|
||||||
|
) {
|
||||||
const updateCommand = 'pnpm add -g @google/gemini-cli@latest';
|
const updateCommand = 'pnpm add -g @google/gemini-cli@latest';
|
||||||
return {
|
return {
|
||||||
packageManager: PackageManager.PNPM,
|
packageManager: PackageManager.PNPM,
|
||||||
|
|||||||
Reference in New Issue
Block a user