查看当前设置的镜像源
npm config get registry
设置npmjs源
npm config set registry=http://registry.npmjs.org
设置淘宝镜像源
npm config set registry https://registry.npmmirror.com
配置:
设置淘宝镜像旧地址:npm config set registry https://registry.npm.taobao.org
设置淘宝镜像最新地址:npm config set registry https://registry.npmmirror.com
设置官方地址:npm config set registry https://registry.npmjs.org