在构建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...尝试在解决方案会议中更改ndots -不起作用
我正在使用node:最新图像
当连接到此包含时,我能够解决。在kube host上的解析也很好。
有什么建议吗?
谢谢
发布于 2020-11-20 22:57:59
您是否尝试增加网络超时时间?可能是安装的包纱线太大或网络太慢(当我在docker上安装纱线时,这就发生在我的mac上)
试一试
yarn add YourPackageHere --network-timeout 100000
or
yarn install --network-timeout 1000000https://stackoverflow.com/questions/59128604
复制相似问题