Skip to content

Commit

Permalink
Merge pull request #5048 from ghostoy/issue-5025-doc
Browse files Browse the repository at this point in the history
Revert "[docs] native module with npm"
  • Loading branch information
rogerwang authored Jun 29, 2016
2 parents 7ce8a2f + 5f590d2 commit fa7d666
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docs/For Users/Advanced/Use Native Node Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@

[TOC]

`npm` tool provided by Node.js builds the native modules, i.e. [C/C++ Addons](https://nodejs.org/api/addons.html), at the time of installation.

Starting from 0.13.0, native modules built by node-gyp or npm in upstream can be supported.

In Linux and OSX you can just load the native module directly. In windows you'll need to replace the file
%APPDATA%\npm\node_modules\node-gyp\src\win_delay_load_hook.c with the one at https://github.com/nwjs/nw.js/blob/nw13/tools/win_delay_load_hook.c

Before 0.13.0, the V8 version and Node API in NW.js is different from official Node.js. To use native Node.js modules with NW.js, you have to rebuild the modules with one of following tools.
`npm` tool provided by Node.js builds the native modules, i.e. [C/C++ Addons](https://nodejs.org/api/addons.html), at the time of installation. However the V8 version and Node API in NW.js is different from official Node.js. To use native Node.js modules with NW.js, you have to rebuild the modules with one of following tools.

## nw-gyp

Expand Down

0 comments on commit fa7d666

Please sign in to comment.