1. 设置为淘宝镜像
npm config set registry https://registry.npm.taobao.org
2. 设置回原本的源,用来发布npm包
npm config set registry https://registry.npmjs.org
3. 查看npm当前设置的源
npm config get registry 或者 npm config list
1. 设置为淘宝镜像
npm config set registry https://registry.npm.taobao.org
2. 设置回原本的源,用来发布npm包
npm config set registry https://registry.npmjs.org
3. 查看npm当前设置的源
npm config get registry 或者 npm config list