1、设置淘宝镜像源:
npm config set registry https://registry.npmmirror.com/
2、查看当前镜像源:
npm config get registry
3、设置官方镜像源:
npm config set registry https://registry.npmjs.org