cnpm
安裝cnpm
$ npm install cnpm -g
修改cnpm鏡像源
$ cnpm config set registry https://registry.npmmirror.com
查看cnpm當前鏡像源
$ cnpm config get registry
# https://registry.npmmirror.com/
卸載cnpm
$ npm uninstall cnpm -g
npm
修改npm鏡像源
$ npm config set registry https://registry.npmjs.com
查看npm當前鏡像源
$ npm config get registry
# https://registry.npmjs.org/