cnpm / cnpmcore

Private NPM Registry for Enterprise
https://npmmirror.com
MIT License
607 stars 80 forks source link

ARM64 上面 yarn install 遇到 @ant-design/icons-svg 下载 ESOCKETTIMEDOUT #584

Closed Qinka closed 11 months ago

Qinka commented 1 year ago

使用registry.npmmirror.com作为npm镜像的时候,

在使用 buildkit 构建 docker 镜像的时候,使用 node 的镜像作为 build 部份,然后构建过程的时候,执行 yarn install 时,总是会得到:

#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 路径手动执行的时候,偶尔不会触发这个问题。

执行 yarn upgrade 更新 了 lock 文件之后,还是会遇到同样地问题,而且出问题的包都不会边

github-actions[bot] commented 1 year ago

我们已经看到你的反馈,如果是功能缺陷,可以提供一下重现该问题的方式;如果是新功能需求,我们会尽快加入讨论。同时我们非常期待你可以加入我们的贡献者行列,让项目可以长期可持续发展。

elrrrrrrr commented 1 year ago

本地未能复现,可能和容器网络配置有关?

  1. 看看返回日志找下具体报错
  2. 单独安装下 @ant-design/icons-svg 看看能否重现
  3. 尝试使用下 cnpm 客户端

看看上面的建议能否定位到具体问题?

elrrrrrrr commented 11 months ago

@Qinka 我将暂时关闭这个 issue,如果需要进一步讨论可以继续 reopen 或更新评论信息 😇