一、需要先安装Python环境,安装过的可以跳过这步
- 下载python:https://www.python.org/downloads/
- 配置Python环境变量
- npm配置
npm config set python "C:\Program_Apps\Python27\python.exe"
二、安装node-gyp
npm install -g node-gyp
三、安装vs-sdk
npm install --global --production windows-build-tools
四、安装robot.js
npm --registry https://registry.npm.taobao.org install robotjs