方法如下
npm install -g cnpm --registry=https://registry.npm.taobao.org
只后
cnpm -v
cnpm安装
原文:https://www.cnblogs.com/lipu12281/p/11929074.html