查看当前镜像源
bash
npm config get registry
设置淘宝镜像源
bash
npm config set registry https://registry.npmmirror.com
恢复官方源
bash
npm config set registry https://registry.npmjs.org/