Jenkins,kubernetes,getaddrinfo EAI_AGAIN

时间:2019-12-01 18:25:45

标签: docker vue.js kubernetes

构建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-无效

我正在使用node:最新图片

当与此连接包含时,我能够解决。在kube主机上解析也很好。

有什么建议吗?

谢谢

1 个答案:

答案 0 :(得分:0)

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

尝试

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