npm install sqlite3 --savenpm install electron-rebuild --save
npm install electron-prebuilt --save
###貌似无效
.\node_modules\.bin\electron-rebuild.cmd
###手动编译
cd .\node_modules\sqlite3
npm install nan --save
npm run prepublish
node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.4-win32-x64
###target是electron -v的版本
node-gyp rebuild --target=1.6.7 --arch=x64 --target_platform=win32 --dist-url=https://atom.io/download/electron/ --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.4-win32-x64
评论 (0)