1.检查cnpm -v 是有可用 不可用话先安装:npm install cnpm -g --registry=https://registry.npm.taobao.org 安装成功; 2.配置环境变量 vim /etc/profile