test(install): quiet smoke npm output

This commit is contained in:
Peter Steinberger
2026-04-11 03:31:16 +01:00
parent 05659cfbc3
commit 421338f585
5 changed files with 21 additions and 12 deletions

View File

@@ -19,7 +19,7 @@ verify_installed_cli() {
fi
if [[ -z "$cmd_path" ]]; then
npm_root="$(npm root -g 2>/dev/null || true)"
npm_root="$(quiet_npm root -g 2>/dev/null || true)"
if [[ -n "$npm_root" && -f "$npm_root/$package_name/dist/entry.js" ]]; then
entry_path="$npm_root/$package_name/dist/entry.js"
fi

View File

@@ -12,3 +12,13 @@ extract_openclaw_semver() {
)"
printf '%s' "${parsed#v}"
}
quiet_npm() {
npm \
--loglevel=error \
--no-update-notifier \
--no-fund \
--no-audit \
--no-progress \
"$@"
}