查看npm 对应的镜像地址
npm config get registry
设置镜像地址为淘宝的镜像地址
npm config set registry https://registry.npm.taobao.org/
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install
查看npm 对应的镜像地址
npm config get registry
设置镜像地址为淘宝的镜像地址
npm config set registry https://registry.npm.taobao.org/
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install