yapi报错(node:18004) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND yapi.demo.qunar.co

目录

  • 莫名其妙的错误
    • 错误代码
    • 原因

莫名其妙的错误

yapi报错(node:18004) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND yapi.demo.qunar.co_第1张图片

错误代码

(node:18004) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND yapi.demo.qunar.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26)
(node:18004) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:18004) [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.

原因

在其他地方都可以 ,linux ,windows ,可能是我的开发电脑环境比较复杂吧。最终放弃了,反正这个是部署在服务器上大家使用,没必要自己电脑上安装这个环境!!!!

你可能感兴趣的:(项目管理)