Skip to content

Commit

Permalink
Revert "[docs] native module with npm"
Browse files Browse the repository at this point in the history
Due to V8 differences (#5025), native modules built from npm or
node-gyp can't be used by NW.js 0.15.x directly. Remove the docs
about the usage of npm & node-gyp.

This reverts commit 9f2a798.
  • Loading branch information
Cong Liu committed Jun 29, 2016
1 parent 7ce8a2f commit 5f590d2
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 5f590d2

Please sign in to comment.