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