@cryptix
Reproduced the UTP-Native build problem. I think what's happening is that optionalDependency
allows the install to fail but since UTP-Native is running the prebuild-install || node-gyp rebuild
as a postinstall that isn't allowed to fail.
To be honest the whole "install and rebuild" pattern is a major pain point because it means that the stack has to build for both:
- your native Node version
- your chosen Electron version
We can bypass the Node step and just build straight for Electron with:
./node_modules/.bin/electron-builder install-app-deps
(If you don't already have electron-builder installed, try npm install --only=dev
.)