前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >window10 yapi安装 swagger配置 及 Error: getaddrinfo ENOTFOUND yapi.demo.qunar.com解决

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

作者头像
oktokeep
发布2024-10-09 09:54:35
发布2024-10-09 09:54:35
1240
举报
文章被收录于专栏:第三方工具第三方工具

node下载 https://nodejs.org/download/release/v12.18.3/ mongodb下载 https://www.mongodb.com/try/download/enterprise 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 https://registry.npm.taobao.org // 在线安装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.com

部署路径: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.com ,初次管理员登录密码为:ymfe.org

以下该客户不影响: 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.com 安装YAPI时出错: Error: getaddrinfo ENOTFOUND yapi.demo.qunar.com

降级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.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档