- View the mirror address:
$ npm get registry
- Configure Taobao mirror address:
$ npm config set registry http://registry.npm.taobao.org/
- Confirm whether the switch is successful:
$ npm config get registry
$ npm get registry
$ npm config set registry http://registry.npm.taobao.org/
$ npm config get registry