Skip to content

Commit

Permalink
docs: Developer instructions for native Node addons (#13121)
Browse files Browse the repository at this point in the history
* docs: Developer instructions for native Node addons

Credits for actually finding this easy method goes to @nornagon.

* 📝 Of course there's a typo
  • Loading branch information
felixrieseberg authored and MarshallOfSound committed Aug 24, 2018
1 parent 519b578 commit 872890e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/tutorial/using-native-node-modules.md
Expand Up @@ -67,6 +67,16 @@ The `HOME=~/.electron-gyp` changes where to find development headers. The
where to download the headers. The `--arch=x64` says the module is built for
64bit system.

### Manually building for a custom build of Electron

To compile native Node addons against a custom build of Electron that doesn't
match a public release, instruct `npm` to use the version of Node you have bundled
with your custom build.

```sh
npm rebuild --nodedir=$HOME/.../path/to/electron/vendor/node
```

## Troubleshooting

If you installed a native module and found it was not working, you need to check
Expand Down

0 comments on commit 872890e

Please sign in to comment.