mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:07:41 +00:00
fix(update): silence npm deprecation/funding noise
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user