1. 直接终端输入
npm config set registry https://registry.npm.taobao.org
2.查看是否设置成功
npm config list
npm换源至淘宝镜像
原文:https://www.cnblogs.com/ccti7/p/12699166.html