# 设置镜像源
npm config set registry https://registry.npm.taobao.org
# 需要python,例find Python using Python version 3.6.3 found at "D:\dev\python\Python36\python.exe"
# 需要vs,例find VS "D:\Program Files (x86)\Microsoft Visual Studio 14.0"
npm install -g node-gyp
npm install --save-dev electron-rebuild
npm install serialport
./node_modules\.bin\electron-rebuild.cmd