Build sqlite3 for node-webkit
masterTo use sqlite3 with node-webkit, you must build it specifically for that runtime due to ABI differences.
- Install
nw-gypglobally:npm install nw-gyp -g. - Build using the
--runtime=node-webkitflag, specifying the target architecture (ia32orx64) and the specificnode-webkitversion.
NODE_WEBKIT_VERSION="0.8.6"
npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)