必要环境:python 2.7或2.6,不能用3.x;VC编译环境(我测试通过:vs2013)
安装必要的nmp包:
npm install sqlite3 -g
npm install nw-gyp -g
npm install node-pre-gyp -g
npm install node-gyp -g
然后cd到sqlite3目录下,执行:
node-pre-gyp rebuild --runtime=node-webkit --target=0.14.7 --arch=ia32
成功
记得把python目录加入环境目录
PS:如果需要编译32位版本额,最好安装32位的node.js。使用64位的node就算是带了arch参数,编译出来的依旧是64位的,搞不清原因