Ubuntu 25安装 OpenClaw
·
更新安装 列表,升级已安装软件
sudo apt update
sudo apt upgrade
安装npm
sudo apt install npm
安装nodejs
sudo apt install nodejs
查看安装的npm node版本
npm --version
node --version
由于要求是 22以上版本,如果不是需要卸载旧版本
sudo apt remove --purge nodejs npm
sudo apt autoremove
添加 NodeSource 官方源(以 v24 为例)
安装新版本
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt install -y nodejs
openclaw官方安装命令
curl -fsSL https://openclaw.ai/install.sh | bash
如果npm报错时可以尝试换npm源
npm config set registry https://registry.npm.taobao.org
更多推荐



所有评论(0)