参考 https://www.jianshu.com/p/5bda5556c149
npm install -g yapi-cli
yapi server

解决方法
cd ~/my-yapi/vendors
vim exts/server/utils.js 22行 添加 useUnifiedTopology: true
let options = {useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true};
参考官网的命令行部署方式 https://hellosean1025.github.io/yapi/devops/index.html
npm run install-server

解决方法:删除mongodb数据库中已创建的管理员数据,重新运行

初始化管理员账号成功,账号名:"superhin@126.com",密码:"ymfe.org"
cd ~/my-yapi
node vendors/server/app.js
http://127.0.0.1:3000/ 使用账号 密码登录即可

官方使用教程:https://hellosean1025.github.io/yapi/


原文:https://www.cnblogs.com/superhin/p/12340560.html