docker - 詹金斯、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 主机上解析也可以正常工作。
有什么建议么?
谢谢
解决方案
您是否尝试增加网络超时?有可能正在安装的包纱线太大或网络太慢(当我在 docker 上安装纱线时,这发生在我的 mac 上)
尝试任一
yarn add YourPackageHere --network-timeout 100000
or
yarn install --network-timeout 1000000
推荐阅读
- r - R:用匹配的条形颜色填充线连接条形图
- javascript - 使用 React Router 的导航测试失败
- objective-c - Swift 中这个 Objective-C 安全类型转换表达式的等价物是什么?
- java - List 无法解析为类型,ArrayList 无法解析为类型
- java - 使用 Spring Oauth2RestTemplate 时如何切换到服务用户
- javascript - 如何在第一页显示电视节目?
- python - 我在 google colab 中遇到 python 代码问题
- r - 使用 lubridate withing R 将周期转换为时间
- python - 使用带有引号和数值的 pandas python 打开 CSV 文件
- python - 在Python中总结行的所有列直到列表结束