Skip to content

The agent that grows with you

fix(scripts): report unsupported Node lines accurately

fangliquan56409af4adb5
diff --git a/scripts/install.sh b/scripts/install.sh
index 38c7a03b609..2fb5d680161 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -962,7 +962,7 @@ check_node() {
if command -v node &> /dev/null && ! command -v npm &> /dev/null; then
log_warn "node found but npm is not on PATH (stray node symlink?) — installing Hermes-managed Node $NODE_VERSION LTS..."
elif command -v node &> /dev/null; then
- log_warn "Node.js $(node --version) is too old (Hermes requires Node >=26) — installing Hermes-managed Node $NODE_VERSION..."
+ log_warn "Node.js $(node --version) is unsupported (Hermes requires Node 22.22+, 24, or 26+) — installing Hermes-managed Node $NODE_VERSION..."
elif [ "$DISTRO" = "termux" ]; then
log_info "Node.js not found — installing Node.js via pkg..."
else