// windows
npm install node-gyp -g
npm install node-pre-gyp -g
npm install --vs2015 -g windows-build-tools
npm install sqlite3 --build-from-source --runtime=electron --target=9.3.7 --dist-url=https://atom.io/download/electron
//淘宝源 http://npm.taobao.org/mirrors/electron/
// mac
npm install node-gyp -g
npm install node-pre-gyp -g
npm install sqlite3 --build-from-source --runtime=electron --target=9.3.7 --dist-url=https://atom.io/download/electron
// http://npm.taobao.org/mirrors/electron/
安装时请修改target为项目中的electron版本号
评论(0)