rebuild
rebuild copied to clipboard
Running from terminal vs npm-script
I'm using electron-rebuild to rebuild the nodegit dependency for Electron v3. If i do it via the cmd using this statement ./node_modules/.bin/electron-rebuild -f -w nodegit all works great. But if I try to add an npm script like this in my package.json "rebuild-electron-deps": "electron-rebuild -f -w nodegit" it does the recompilation process as well and also properly succeeds, but the app crashes on using the dependency, which hints the compilation wasn't successful. Any ideas what the difference could be?
Just a quick guess, try such npm script electron-rebuild -- -f -w nodegit.
Thx for the tip will give it a try after the holidays
I've tried already, it's not going to work.
I actually just faced the same issue. It works differently if I run electron-rebuild as npm script and as direct console call (ie /node_modules/.bin/electron-rebuild or node ./node_modules/electron-rebuild/lib/src/cli.js).
Thats sad, I really thought the missing double-dash was the issue. Thats currently the only thing holding me back from an upgrade to Electron 3 in my app :(
I'm now randomly pinging @MarshallOfSound and @paulcbetts for help as one of the top contributors ;) Do you guys maybe have an idea what could cause this issue?