Skip to content

Commit 872890e

Browse files
felixriesebergMarshallOfSound
authored andcommitted
docs: Developer instructions for native Node addons (electron#13121)
* docs: Developer instructions for native Node addons Credits for actually finding this easy method goes to @nornagon. * 📝 Of course there's a typo
1 parent 519b578 commit 872890e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/tutorial/using-native-node-modules.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ The `HOME=~/.electron-gyp` changes where to find development headers. The
6767
where to download the headers. The `--arch=x64` says the module is built for
6868
64bit system.
6969

70+
### Manually building for a custom build of Electron
71+
72+
To compile native Node addons against a custom build of Electron that doesn't
73+
match a public release, instruct `npm` to use the version of Node you have bundled
74+
with your custom build.
75+
76+
```sh
77+
npm rebuild --nodedir=$HOME/.../path/to/electron/vendor/node
78+
```
79+
7080
## Troubleshooting
7181

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

0 commit comments

Comments
 (0)