window10 yapi安装 swagger配置及 Error: getaddrinfo ENOTFOUND yapi.demo.qunar.com解决

node下载.18.3mongodb下载D:Program FilesMongoDBServer5.0bin 双击:mongod 文件,启动http:localhost:27017It looks like you

window10 yapi安装 swagger配置 及 Error: getaddrinfo ENOTFOUND yapi.demo.qunar.com解决

node下载 .18.3/ mongodb下载 D:\Program Files\MongoDB\Server\5.0\bin 双击:mongod 文件,启动

http://localhost:27017/ It looks like you are trying to access MongoDB over HTTP on the native driver port.

将D:\Program Files\MongoDB\Server\5.0\bin加入到环境变量,path中 连接mongodb客户端: C:\Users\H>mongo show databases; exit

npm安装Yapi命令: // 命令输入环境:Windows系统下的 cmd 命令窗口 npm install -g yapi-cli --registry // 在线安装Yapi

启动Yapi服务命令: // 命令输入环境:Windows系统下的 cmd 命令窗口 yapi server // 启动Yapi服务

浏览器打开:http://localhost:9090/,进入yapi的配置安装服务。 http://localhost:9090/

部署yapi的时候,选择1.8.8版本安装解决以上安装1.4.1报错信息。

如果停留在这个页面时间过长,可以打开yapi server  // 启动Yapi服务 这个dos窗口,一般是报错,已终止了。报错信息如:Error: getaddrinfo ENOTFOUND yapi.demo.qunar

部署路径:C:\Users\H\my-yapi node启动Yapi服务: cd C:\Users\H\my-yapi node vendors/server/app.js // 启动yapi服务

浏览器访问 http://localhost:3000 或 http://127.0.0.1:3000 账号名:你设置的邮箱 admin@admin ,初次管理员登录密码为:ymfe

以下该客户不影响: Error: (node:7456) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the

Error: getaddrinfo ENOTFOUND yapi.demo.qunar 安装YAPI时出错: Error: getaddrinfo ENOTFOUND yapi.demo.qunar

降级npm版本,window10通过控制面板中的卸载程序来实现。 卸载v16.15.1,重新安装v12.18.3

C:\Users\H>node -v v16.15.1

C:\Users\H>where node D:\Program Files\nodejs\node.exe

C:\Users\H>node -v v12.18.3 C:\Users\H>npm -v 6.14.13 C:\Users\H>mongo --version MongoDB shell version v5.0.9 Build Info: { "version": "5.0.9", "gitVersion": "6f7dae919422dcd7f4892c10ff20cdc721ad00e6", "modules": [], "allocator": "tcmalloc", "environment": { "distmod": "windows", "distarch": "x86_64", "target_arch": "x86_64" } }

 yapi使用到了mongodb数据库:

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:2022-07-21,如有侵权请联系 cloudcommunity@tencent 删除服务配置comerrorswagger

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754984292a5224077.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信