安装cnpm,输入以下命令: npm install -g cnpm --registry=https://registry.npm.taobao.org 可以使用cnpm -v,检验是否安装成功,如果有报错检查是否添加了系统变量之中。