Skip to content

赛博养虾-OpenClaw安装

标签
云计算
字数
235 字
阅读时间
2 分钟

准备操作

首先准备一台安装好Ubuntu的主机

通过apt installapt upgrade -y升级系统

安装OpenCode

后续步骤在root用户运行

安装curl

后续我们通过curl安装OpenCode

apt install curl -y

安装OpenCode

curl -fsSL https://opencode.ai/install | bash

安装完成截图

添加到运行目录

source /root/.bashrc

运行OpenCode

输入opencode进入

安装OpenClaw

下述操作在root用户运行

curl -fsSL https://openclaw.ai/install.sh | bash

等待OpenClaw自动安装

故障1:NPM下载失败

由于NPM有概率下载失败,因此使用nvm进行配置

安装nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

重启终端后使用nvm

手动安装node.js

nvm install 22.20.0

使用node.js

安装nrm

npm install -g nrm

用户引导,选择YES

模式选择q 选择本地ollama作为大模型

贡献者

The avatar of contributor named as lishu620 lishu620

文件历史

撰写