1、淘宝NPM镜像
优势:淘宝npm镜像更新及时,支持快速下载和完整的包同步。
https://registry.npmmirror.com
代码:
npm config set registry=https://registry.npmmirror.com/
2、阿里NPM镜像
优势:适合阿里云用户,速度和稳定性均表现良好。
https://npm.aliyun.com
代码:
npm config set registry=https://npm.aliyun.com/
3、腾讯NPM镜像
优势:服务质量稳定,覆盖范围广。
https://mirrors.cloud.tencent.com/npm/
代码:
npm config set registry=https://mirrors.cloud.tencent.com/npm/
4、华为NPM镜像
优势:适合在华为云环境中开发的用户。
地址:https://mirrors.huaweicloud.com/repository/npm/
代码:
npm config set registry=https://mirrors.huaweicloud.com/repository/npm/
5、网易NPM镜像
优势:更新较为即使,使用稳定。
地址:https://mirrors.163.com/npm/
代码:
npm config set registry=https://mirrors.163.com/npm/
6、清华NPM镜像
优势:清华大学提供的开源镜像网站,是国内知名的开源项目镜像站点之一。
地址:https://mirrors.tuna.tsignhua.edu.cn/npm/
代码:
npm config set registry=https://mirrors.tuna.tsignhua.edu.cn/npm/
本文参考:https://cloud.tencent.com/developer/article/2483549