1.安装cnpm 输入以下命令 npm install -g cnpm --registry=https://registry.npm.taobao.org 输入cnpm -v输入是否正常,出现版本号安装成功 cnpm -v