Building Native Node.js Addons for NW.js Applications: A Cross-Platform Guide
NW.js uses its own V8/Node.js ABI distinct from standard Node.js. Build native addons by setting npm_config_target and npm_config_dist_url to NW.js artifacts, then verify loading with process.versions['node-webkit'] matching your build target.