fix(update): silence npm deprecation/funding noise

This commit is contained in:
Peter Steinberger
2026-02-19 18:19:10 +01:00
parent e741a53919
commit bf8117ad32
2 changed files with 6 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ export type CommandRunner = (
const PRIMARY_PACKAGE_NAME = "openclaw";
const ALL_PACKAGE_NAMES = [PRIMARY_PACKAGE_NAME] as const;
const GLOBAL_RENAME_PREFIX = ".";
const NPM_GLOBAL_INSTALL_QUIET_FLAGS = ["--no-fund", "--no-audit", "--loglevel=error"] as const;
async function tryRealpath(targetPath: string): Promise<string> {
try {
@@ -133,7 +134,7 @@ export function globalInstallArgs(manager: GlobalInstallManager, spec: string):
if (manager === "bun") {
return ["bun", "add", "-g", spec];
}
return ["npm", "i", "-g", spec];
return ["npm", "i", "-g", spec, ...NPM_GLOBAL_INSTALL_QUIET_FLAGS];
}
export async function cleanupGlobalRenameDirs(params: {