Thank YOU, guys for this solutions. My only 2 errors after “switching” to electron.
I was having the same (relative) errors-problem as cenglish on both Windows 32 & 64 platforms, but NO problems on OSX BUT with NW.js. I tried for MONTHS starting about early November 2015 trying to get SQLjs, Alasql and Node sqlite3 to work on NW and various sqlite work arounds.
Yesterday I thought of trying another alternative because I kept on running into road blocks with anything sqlite/3 builds on NW. I installed electron, the sample app and tested the build of node sqlite3. I only had ONE error which I found the solution here: https://github.com/electron/electron-rebuild/issues/39. Node sqlite3 installed, built and tested PERFECTLY on electron on the SAME Node.js configuration.
I installed and tested SQLjs: PERFECT; Installed & tested alasql. alasql(ATTACH SQLITE DATABASE…) didn’t work on NW but works PERFECTLY on #electron (5 minutes ago).
COULDN’T get node-pre-gyp and nw-gyp from stop throwing errors on NW.
I WISH I had found electron earlier. TWO thumbs and TWO big toes UP for electron.