安装
BOT
普通用户推荐使用 BOT PE 仓库,其配置了对 Yunzai-V3 插件的兼容,适合绝大多数用户使用。
克隆代码
BOT PE
git clone --depth=1 https://github.com/yunzaijs/bot.git ./yunzai-bot
仓库地址:BOT PE
安 装依赖
切换到yunzai-bot根目录
cd yunzai-bot
更换npm镜像源,加速依赖包下载
npm config set registry https://registry.npmmirror.com
如已配置镜像,请可忽视
yarn 不能使用2.x版本,它无法使用link
npm install yarn@1.19.1 -g
不推荐pnpm和cnpm
- node版本>=18
- node版本<18
如果 node版本 < 18 需要加参数
--ignore-engines
执行依赖安装
yarn install
执行依赖安装
yarn install --ignore-engines