1、node.js 环境安装
官方下载地址 https://nodejs.org/en/download/
选择合适的版本下载,笔者使用的是 windows .zip文件 64位
下载之后解压缩如下图所示:
添加系统变量 高级系统配置---》环境变量--》系统变量--》编辑path。 保存
2、cnmp安装
指定registry为淘宝镜像
npm config set registry https://registry.npm.taobao.org
选择淘宝镜像下载cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org