【发布时间】:2018-05-07 18:15:09
【问题描述】:
我遇到了一台本应能够脱机运行的机器的问题。
我可以在我的应用程序运行后拉电缆,但在拔下启动期间我收到以下错误:
May 6 23:04:50 myco serve[4121]: (node:4121) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN registry.npmjs.org:443
May 6 23:04:50 myco serve[4121]: at Object._errnoException (util.js:1022:11)
May 6 23:04:50 myco serve[4121]: at errnoException (dns.js:55:15)
May 6 23:04:50 myco serve[4121]: at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
May 6 23:04:50 myco serve[4121]: (node:4121) 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: 1)
May 6 23:04:50 myco serve[4121]: (node:4121) [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.
似乎 dns.js 是 webpack/node-libs-browser 的一部分,但据我所知……我在源代码树的任何地方都找不到 GetAddrInfoReqWrap 或 getaddrinfo事情。在故意尝试使用 npm 时搜索有很多信息,人们会遇到类似的错误,但这不是我正在做的。我应该已经在机器上拥有我需要的一切。
【问题讨论】:
标签: npm webpack getaddrinfo