Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载不到老版本的npm #703

Closed
RiESAEX opened this issue Jul 24, 2024 · 6 comments
Closed

下载不到老版本的npm #703

RiESAEX opened this issue Jul 24, 2024 · 6 comments

Comments

@RiESAEX
Copy link

RiESAEX commented Jul 24, 2024

在sourceRegistry配成https://registry.npmmirror.com的时候
用nvm-windows下载node14.会下载不到npm
抓包看nvm-windows的请求 在装node14的时候最后会去请求/-/binary/npm/v6.14.15.zip
然后响应了一个{"error":"[NOT_FOUND] Binary \"npm/v6.14.15.zip\" not found"}回来

Copy link

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

@elrrrrrrr
Copy link
Member

image

手上没有 windows 机器,在 linux 下没有重现 🤔

@RiESAEX
Copy link
Author

RiESAEX commented Jul 26, 2024

是的 好像只有nvm-windows会单独走一个请求去下npm,nvm和fnm看起来都是直接用node的tar包里面带的npm。

翻了一下cnpm同步的是

distUrl: 'https://github.com/npm/cli/releases',

但是nvm-windows那边默认的npm_mirror是 https://github.com/npm/cli/archive/
https://github.com/coreybutler/nvm-windows/blob/e11ee22f85c41d7807cc468bb7c882b8b39bb56f/src/web/web.go#L28
大概是这里github有区别导致的?

@fengmk2
Copy link
Member

fengmk2 commented Oct 13, 2024

这是 npm-windows 的问题

@fengmk2 fengmk2 closed this as completed Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants