小生说:
“努力~,奋斗~,实现梦想~”

前言
小龙虾安装必备工具
给“子系统”增加必要工具(【照做系列】为“个人”AI准备(安装子系统))
正文
1.必备软件
node -v# curlcurl --version# 一般会自带npm -v# 一般会自带git -v
2.安装curl
sodo apt install curl3.安装nvm(nodejs管理器)
# 下载 & 安装curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash# 修改镜像源vim ~/.bashrc# 按 i 进入插入模式,最最下面添加“镜像源”export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/nodeexport NVM_NPM_ORG_MIRROR=https://npmmirror.com/mirrors/npm# 按esc,按":wq"# 让其立即生效source ~/.bashrc
4.安装nodejs
# 会默认安装18sodo apt install nodejs# openclaw要求22以上,使用nvm(nodejs管理器)安装nvm install --lts
5.设置 npm 镜像源 (为了更方便的后续安装小龙虾)
# 查看 npm 镜像源npm config get registry# 设置 npm 镜像源npm config set registry https://registry.npmmirror.com
准备工作完成~~
夜雨聆风