首页 > 解决方案 > 詹金斯、kubernetes、getaddrinfo EAI_AGAIN

问题描述

构建 vuejs 应用程序时出现这个奇怪的错误 -

[91merror An unexpected error occurred: "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz: getaddrinfo EAI_AGAIN registry.yarnpkg.com".
[0minfo If you think this is a bug, please open a bug report with the information provided in "/web/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...

试图更改 resolv conf 中的 ndots - 没有用

我正在使用节点:最新图像

当包含与此的连接时,我能够解决。在 kube 主机上解析也可以正常工作。

有什么建议么?

谢谢

标签: dockervue.jskubernetes

解决方案


您是否尝试增加网络超时?有可能正在安装的包纱线太大或网络太慢(当我在 docker 上安装纱线时,这发生在我的 mac 上)

尝试任一

yarn add YourPackageHere --network-timeout 100000
or
yarn install --network-timeout 1000000

推荐阅读