From 35195f4bdcb197992264852155cd6f1ff1646cad Mon Sep 17 00:00:00 2001 From: starry <115192496+sky22333@users.noreply.github.com> Date: Thu, 29 Jan 2026 02:18:24 +0800 Subject: [PATCH] Update install.sh --- moltbot/install.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/moltbot/install.sh b/moltbot/install.sh index cce0cdc..8ee5ef7 100644 --- a/moltbot/install.sh +++ b/moltbot/install.sh @@ -72,12 +72,9 @@ install_nodejs() { fi fi - log_info "正在安装基础依赖 (curl, nano)..." - apt-get update - apt-get install -y curl nano - + log_info "正在安装Node.js" + apt-get install -y curl curl -fsSL https://deb.nodesource.com/setup_22.x | bash - - apt-get install -y nodejs if command -v node >/dev/null 2>&1; then @@ -103,7 +100,6 @@ install_moltbot_core() { fi fi - # 强制使用 clawdbot 包,因为更稳定 npm install -g clawdbot@latest if command -v clawdbot >/dev/null 2>&1; then