node:配置npm使用国内源
一,查看默认的源
$ npm config get registry
https://registry.npmmirror.com
二,配置使用国内源
$ npm config set registry https://registry.npm.taobao.org
三,查看效果:
$ npm config get registry
https://registry.npm.taobao.org
$ npm config get registry
https://registry.npmmirror.com
$ npm config set registry https://registry.npm.taobao.org
$ npm config get registry
https://registry.npm.taobao.org