-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EACCES when using quitAndInstall electron 3 #3367
Comments
I have the same issue with the assisted installer for NSIS. Been an issue with my app since electron 3.x was released. @develar Fix would be appreciated when you can, stuck on 2.x for now. |
Do you know of any possible workaround for election 3? Looks like this won't be handled for a while. |
not that I know of, I'll probably push the compiled js to another branch of my fork if this doesn't get merged and reference it in my package.json |
I actually just started receiving the same error after updating to Electron 3.0.3 from 2.x. |
I've compiled @timotheeguerin's solution to another repository. https://github.com/WesterosCraftCode/electron-updater-bin As a temporary workaround, you can change your When the PR is merged and released you can switch back to |
Thanks @dscalzi That works If you rename the package back to electron-updater you can just run
Without needing to change anything in the code. |
I got mine working by including the node_modules's bin folders. I use to have
I removed this so no it includes the bin of each of the node modules. I also include electron-updater and all of it's dependencies in thje files parameter. |
Windows
I believe the issue is that the
spawn
command doesn't actually throw an error that is catchable here https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/src/NsisUpdater.ts#L115After testing locally I think the
try catch
needs to be changed toon("error"
might have been a change to node 10 vs 8This mock code for example works fine when using
.on("error"
The text was updated successfully, but these errors were encountered: