临时修改npm镜像:
npm i --registry=https://registry.npmjs.org/
永久修改npm镜像:
npm config set registry https://registry.npm.taobao.org
重置npm镜像:
npm config set registry https://registry.npmjs.org/
查看镜像的配置结果:
npm config get registry
npm i --registry=https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
npm config set registry https://registry.npmjs.org/
npm config get registry