Update install.sh
This commit is contained in:
@@ -72,12 +72,9 @@ install_nodejs() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log_info "正在安装基础依赖 (curl, nano)..."
|
log_info "正在安装Node.js"
|
||||||
apt-get update
|
apt-get install -y curl
|
||||||
apt-get install -y curl nano
|
|
||||||
|
|
||||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||||
|
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
|
|
||||||
if command -v node >/dev/null 2>&1; then
|
if command -v node >/dev/null 2>&1; then
|
||||||
@@ -103,7 +100,6 @@ install_moltbot_core() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 强制使用 clawdbot 包,因为更稳定
|
|
||||||
npm install -g clawdbot@latest
|
npm install -g clawdbot@latest
|
||||||
|
|
||||||
if command -v clawdbot >/dev/null 2>&1; then
|
if command -v clawdbot >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user