1. 先打开终端输入以下命令回车,自动安装。
/bin/zsh-c"$(curl-fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2. 选择清华大学源安装。
3. 按顺序安装完成后,即可关闭终端。然后再重新打开终端。
二、安装 git
在终端中输入,回车。
brew install git
三、安装 node.js
1. 进入 node.js 官网下载。
点击进入: 点击进入
2. 下载完成后打开安装。
四、安装 openclaw
1. 首先打开终端,输入以下命令(切换 npm 镜像源到国内,提示安装速度)。
npm config set registry https://registry.npmmirror.com
2. 改成 https 访问,防止 ssh 配置报错。
git config --global url."https://github.com/".insteadOf ssh://git@github.com/
3. 安装 openclaw。
sudo npm install -g openclaw@latest
4. 安装完成,输入以下命令,清除本地已安装的飞书插件目录,避免后面配置冲突。
sudo rm-rf~/.openclaw/extensions/feishu
5. 接下开始初始化向导,后面步骤通 Windows。
openclaw onboard
正文完
