1.确保安装有node 和npm,且node 版本建议用6.*;
或者安装 nvm,用nvm use 6 将版本切换至6
2.git clone 源码git地址
3.npm install 安装所有依赖
4.packag.json 中scripts 命令前加bash
5.git 命令行中执行npm run build
6.如果步骤5报rsync :command not found 错,下载rsync,拷贝bin/rsync.exe 至git/usr/bin 目录下,如果仍然报错,将lib和share目录下内容拷贝至git 对应目录下。(安装后Git bash 窗口需要重新打开)
7.再次执行npm run build 报mocha错,如下图:
修改instanbul cove _mocha 命令为instanbul cove node_modules/mocha/bin/_mocha
~~~~Done~~~~~