npm 添加华为镜像源

比淘宝的好用,哈哈

1. 设置镜像源 

npm config set registry https://mirrors.huaweicloud.com/repository/npm/

2.清空缓存

npm cache clean -f

3. 检查

npm config list

图示:

 

posted @ 2020-12-04 16:58  lishidefengchen  阅读(12141)  评论(0编辑  收藏  举报