It seems you have already mastered the sqlite3 build for nw.js.
nw.js v0.20.1
Node v7.5.0
Chromium 56.0.2924.87
I have done the following:
1. installed nw-gyp
2. Installed VC++ tool chain
3. Tried: npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.20.1
4. sqlite3 is installed under 'node_modules' folder
5. When I run my nwjs app, I get following error for require('sqlite3').
==============
Error [Copied from Inspect DevTool]
Uncaught Error: Cannot find module 'c:\nw-sdk\apps\my-app\node_modules\sqlite3\lib\binding\node-webkit-v0.20.1-win32-x64\node_sqlite3.node'
at Function.Module._resolveFilename (module.js:494:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:522:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (c:\nw-sdk\apps\my-app\node_modules\sqlite3\lib\sqlite3.js:4:15)
at Module._compile (module.js:595:32)
at Object.Module._extensions..js (module.js:610:10)
at Module.load (module.js:512:32)
at tryModuleLoad (module.js:471:12)
at Function.Module._load (module.js:463:3)
Any help would definitely will be really appreciated.
Thanks!
- Bilal