- 查看镜像地址:
$ npm get registry
- 配置淘宝镜像地址:
$ npm config set registry http://registry.npm.taobao.org/
- 确认是否切换成功:
$ npm config get registry
$ npm get registry
$ npm config set registry http://registry.npm.taobao.org/
$ npm config get registry