npm config set registry http://registry.npm.taobao.org/
配置后验证是否成功(查看当前npm源):
npm config get registry
npm config set registry https://registry.npmjs.org/