npm
npm镜像地址查看:
npm config get registry
npm镜像地址设置(淘宝镜像地址):
npm config set registry https://registry.npm.taobao.org
npm镜像地址删除(恢复默认地址):
npm config delete registry
cnpm
cnpm安装:
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm卸载:
npm uninstall cnpm -g