Hi Community,
We are announcing that nw-gyp is updated with upstream node-gyp to 3.4.0 to support building native modules for NW.js. For NW.js LTS (0.14.x), you can reuse native modules built by NPM (see Build Native Modules with NPM below). For non-LTS versions, you have to rebuild all native modules with nw-gyp.
Build Native Modules with NPM
NW.js LTS (0.14.x) supports native modules built by NPM.
Build Native Modules with nw-gyp
Non-LTS versions of NW.js should rebuild native modules with nw-gyp due to the differences of V8 ABI between NW.js and Node.js. NPM build will NOT work until Node.js can upgrade V8 to a newer version.
The usage of nw-gyp is the same with node-gyp, except that you need to specify the version and arch (x64 or ia32) of NW.js manually.
$ nw-gyp rebuild --target=0.15.0 --arch=x64
Bugs and Documents
Best Regards,
Cong