cnpm / cnpmcore

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

[optimize] npm binary URL config guide or auto-redirect correct #649

Closed genffy closed 9 months ago

genffy commented 9 months ago

recently(2024-01-22 10:26:01) the npm.taobao.org totaly unuseful, and many x_cdnurl, x_binary_site, x_mirror got error response.

But there is no a complete guide to how to change it properly, and some old URL redirects are not correct.

# old
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

# temp used
# will redirect to https://cdn.npmmirror.com/binaries/node-sass
sass_binary_site=https://npmmirror.com/mirrors/node-sass

# correct
sass_binary_site=https://registry.npmmirror.com/-/binary/node-sass
github-actions[bot] commented 9 months ago

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

fengmk2 commented 9 months ago

https://github.com/cnpm/binary-mirror-config/blob/master/package.json#L49 参考这里的环境变量配置。

genffy commented 8 months ago

https://github.com/cnpm/binary-mirror-config/blob/master/package.json#L49 参考这里的环境变量配置。

这里的配置实际上是不太对的,比如

Screenshot 2024-02-25 at 17 23 56

点了几个测试,不知道是不是我用的方法不对