Win 系统自行探索

Win 系统自行探索

Win 系统自行探索

环境搭建

环境准备:Linux
Node.js(>=v16), Redis, Git, Chrome(可选)

node

node

Ubuntu/Debian

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -     
sudo apt-get install -y nodejs

CentOS

curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash -
sudo yum install -y nsolid

redis 安装

redis

Ubuntu/Debian

sudo apt-get update
sudo apt-get install redis-server

CentOS

sudo dnf install redis-server

sudo yum install redis-server
sudo systemctl start redis-server

qsin签名

qsin

bash <(curl -L https://sourl.cn/UT4an4)

如果你的网络环境较差,无法连接到 Github 可以使用

bash <(curl -L https://sourl.cn/fFiXiY)

机器人部署

机器人部署

喵崽机器人主体

git clone --depth=1 https://gitee.com/yoimiya-kokomi/Miao-Yunzai.git && cd Miao-Yunzai 

喵崽插件

git clone --depth=1 https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/

2.安装pnpm ,已安装的可以跳过

使用npmjs.org安装

npm install pnpm -g

如依赖安装缓慢或失败可尝试更换国内npm安装

npm --registry=https://registry.npmmirror.com install pnpm -g

3.安装依赖

直接安装

pnpm install -P

如依赖安装缓慢或失败可尝试更换国内pnpm

pnpm config set registry https://registry.npmmirror.com && pnpm install -P

4.运行(首次运行按提示输入登录)

node app

常见问题

常见问题

puppeteer 相关问题

puppeteer Chromium 启动失败..

Ubuntu/Debian

sudo apt-get -y install libgbm-dev libxkbcommon-x11-0 libgtk-3-0  libasound2 libnss3

CentOS

sudo dnf install alsa-lib at-spi2-atk nss libgbm

sudo yum install alsa-lib at-spi2-atk nss libgbm

………………未完待续………………

TRSS崽

这是传送门

可选插件

这是传送门

End

本文标题:Miao-Yunzai 机器人安装教程

本文链接:https://www.atxrom.com/archives/12/

除非另有说明,本作品遵循CC 4.0 BY-SA 版权协议

声明:转载请注明文章来源。

如果觉得我的文章对你有用,请随意赞赏