比如,要编译leveldown,使用Electron的版本是1.4.14,Nodejs的版本为6.5.0,编译命令如下:
1、配置
node-gyp configure --target=1.4.14 --arch=x64 --dist-url=https://atom.io/download/atom-shell
2、编译生成
node-gyp build --target=1.4.14
这样编译出来的Addon就可以正常使用啦
比如,要编译leveldown,使用Electron的版本是1.4.14,Nodejs的版本为6.5.0,编译命令如下:
1、配置
node-gyp configure --target=1.4.14 --arch=x64 --dist-url=https://atom.io/download/atom-shell
2、编译生成
node-gyp build --target=1.4.14
这样编译出来的Addon就可以正常使用啦