查看npm源地址
npm config get registry
默认地址为:
https://registry.npmjs.org/
更换源地址(设置为淘宝镜像)
npm config set registry https://registry.npmmirror.com
设置好之后,记得再次查看源地址,检查是否设置成功