npm 镜像配置及源地址

npm config get registry  查看当前使用的镜像源

npm config set registry=https://repo.huaweicloud.com/repository/npm/

https://registry.npmjs.org/   官方

https://repo.huaweicloud.com/repository/npm/     华为镜像源

https://registry.npm.taobao.org/       淘宝镜像源

 

nrm 

nrm ls 查看可用镜像源列表

nrm use <xxx>  使用镜像源

 

posted @ 2025-07-10 10:42  LiyaX  阅读(221)  评论(0)    收藏  举报