1. Set the use Taobao cnpm
npm config set registry https://registry.npm.taobao.org
2. Check whether the configuration, you can use the command directly after a successful cnpm
npm config get registry
3. Restore npm warehouse
npm config set registry https://registry.npmjs.org