Open nornagon opened 5 years ago
NB. I think the best way to handle this would be to download the node headers along with Electron, e.g. from https://electronjs.org/headers/v4.2.0/node-v4.2.0-headers.tar.gz
, and then run npm install with npm_config_nodedir=.../path/to/extracted/headers
@nornagon The issue is fiddle npm install
's on every launch. Which makes building native modules quite tedious.
I originally wrote this feature into electron-rebuild to solve this issue --> https://github.com/electron/electron-rebuild/pull/242
The idea being fiddle could just run electron-rebuild
on the temp dir and it would Handle All The Things
i'd rather a slow rebuild than a straight-up failure 🤷♂
Example: https://gist.github.com/9f283e1b807667af397d46639dfb7c45