需要掌握:npm设置淘宝镜像
设置镜像源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
清空缓存(可略)
npm cache clean -f
查看是否设置成功
npm config get registry
或
npm config list
参考:
https://www.cnblogs.com/lishidefengchen/p/14086733.html
需要掌握:npm设置淘宝镜像
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
npm cache clean -f
npm config get registry
或
npm config list
参考:
https://www.cnblogs.com/lishidefengchen/p/14086733.html