#21 [linux/arm64 builder 5/6] RUN yarn install
#21 ...
#12 [linux/amd64 stage-1 1/2] FROM harbor.wareless.group/library/nginx:mainline-alpine@sha256:dd8a054d7ef030e94a6449783605d6c306c1f69c10c2fa06b66a030e0d1db793
#12 CACHED
#23 [linux/amd64 stage-1 2/2] COPY --from=builder /src/dist /usr/share/nginx/html
#23 DONE 1.9s
#21 [linux/arm64 builder 5/6] RUN yarn install
#21 145.7 info There appears to be trouble with your network connection. Retrying...
#21 149.4 info There appears to be trouble with your network connection. Retrying...
#21 185.3 error An unexpected error occurred: "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.3.1.tgz: ESOCKETTIMEDOUT".
#21 185.3 info If you think this is a bug, please open a bug report with the information provided in "/src/yarn-error.log".
#21 185.3 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#21 ERROR: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
------
> [linux/arm64 builder 5/6] RUN yarn install:
49.49 info There appears to be trouble with your network connection. Retrying...
79.05 info There appears to be trouble with your network connection. Retrying...
82.76 info There appears to be trouble with your network connection. Retrying...
112.3 info There appears to be trouble with your network connection. Retrying...
116.1 info There appears to be trouble with your network connection. Retrying...
145.7 info There appears to be trouble with your network connection. Retrying...
149.4 info There appears to be trouble with your network connection. Retrying...
185.3 error An unexpected error occurred: "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.3.1.tgz: ESOCKETTIMEDOUT".
185.3 info If you think this is a bug, please open a bug report with the information provided in "/src/yarn-error.log".
185.3 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
的问题,不管是那个版本的 @ant-design/icons-svg 都会有这个网络问题,这个问题在 ci 中百分百会遇到(azure devops pipeline)名,然后本地在 ci 的 work 路径手动执行的时候,偶尔不会触发这个问题。
使用registry.npmmirror.com作为npm镜像的时候,
在使用 buildkit 构建 docker 镜像的时候,使用 node 的镜像作为 build 部份,然后构建过程的时候,执行
yarn install
时,总是会得到:的问题,不管是那个版本的 @ant-design/icons-svg 都会有这个网络问题,这个问题在 ci 中百分百会遇到(azure devops pipeline)名,然后本地在 ci 的 work 路径手动执行的时候,偶尔不会触发这个问题。
执行
yarn upgrade
更新 了 lock 文件之后,还是会遇到同样地问题,而且出问题的包都不会边