npm 镜像加速

日常npm 加速使用还是比较多的,但是最近淘宝的有问题了(域名切换+同步问题)造成好多npm镜像不能使用
最近测试比较靠谱的有华为的以及腾讯云的

参考配置

 
npm config set registry  https://registry.npmmirror.com
npm config set registry http://mirrors.cloud.tencent.com/npm/
npm config set registry https://mirrors.huaweicloud.com/repository/npm/

说明

淘宝镜像还是不错的,但是最近不是很靠谱了,推荐还是别换下,等稳定了再切换获取,而且加上最近调整造成的问题不少。。。。

参考资料

https://mirrors.cloud.tencent.com/
https://mirrors.huaweicloud.com/home
https://developer.aliyun.com/mirror/

原文地址:https://www.cnblogs.com/rongfengliang/p/15580797.html