版本号
yapi-cli@1.5.0
什么问题
(node:27797) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND yapi.demo.qunar.com yapi.demo.qunar.com:80
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)
(node:27797) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:27797) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
当前安装版本: 1.9.1
连接数据库成功!
开始下载平台文件压缩包...
http://registry.npm.taobao.org/yapi-vendor/download/yapi-vendor-1.9.1.tgz
部署文件完成,正在安装依赖库...
npm
WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN
npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN
npm You can find the latest version at https://nodejs.org/
npm WARN eslint-config-modular@4.2.2 requires a peer of eslint@>=3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mongoose-auto-increment@5.0.1 requires a peer of mongoose@^4.1.12 but none is installed. You must install peer dependencies yourself.
up to date in 1.197s
依赖库安装完成,正在初始化数据库mongodb...
Error: npm
如何复现此问题
正常安装,执行yapi server 后,进行部署
什么浏览器
chrome
什么系统(Linux, Windows, macOS)
linux
1条答案
按热度按时间jdg4fx2g1#
楼主,请问解决了吗,
遇到了一样的报错