From 1d70828eb6b0d901a9ba2246584de7e1f1a56238 Mon Sep 17 00:00:00 2001 From: user123 Date: Thu, 29 Jan 2026 18:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- moltbot/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moltbot/install.sh b/moltbot/install.sh index dba784d..9a0370d 100644 --- a/moltbot/install.sh +++ b/moltbot/install.sh @@ -72,7 +72,8 @@ install_nodejs() { fi log_info "正在安装Node.js" - apt-get install -y curl + [ -d /etc/apt/sources.list.d ] || mkdir -p /etc/apt/sources.list.d + apt-get install -y curl git curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs