cnpm镜像地址设置

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/

你可能感兴趣的:(cnpm镜像地址设置)