mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 21:10:25 +00:00
test(install): quiet smoke npm output
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
"$@"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user