1、查看当前npm镜像源
npm config get registry
2、切换npm镜像源到淘宝
npm config set registry https://registry.npmmirror.com/