electron: Postinstall stuck
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
- Electron Version:
- 7.1.1
- Operating System:
- macOS 10.13.6
- Last Known Working Electron version:
- None
Expected Behavior
Can install electron, i.e. postinstall hook finishes eventually
Actual Behavior
Cannot install electron: The postinstall hook hangs forever
To Reproduce
npm install electron
Screenshots
Additional Information
Waited for it to finish for 30 minutes. Restarted the OS, then tried to install again and waited again for 30 minutes.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 11
- Comments: 15 (1 by maintainers)
Yes, that’s probably the download. Waiting for it to finish is the way to go.
But: People usually do not have the Activity Monitor open all the time. Also people usually do not expect a software download to take 20 minutes. And if a software download takes 20 minutes, then they usually expect it to be somehow indicated (progress bar for example).
Waiting for 20 minutes without any hint about what’s going on and when it’s done, asks for troubles.
https://www.npmjs.com/package/electron-download
Same issue here on Win10 right now, tried several times. Also, even with
--verboseno download progress is showing up.I’ve had this issue in November 2019 and it took 35min to install. Now I’m trying to install it again and after 2h it still didn’t finish ;_;
I was facing the same issue, haven’t looked at the cause but any dev’s or anyone else who comes across this note the following:
I know it’s not ideal but removing electron and re-installing 7.1.0 worked for me:
npm r electronnpm i electron@7.1.0 --saveafter that, everything became zen and i remembered the meaning of life ❤️
please also note i am using windows 10 and used the windows terminal preview to acheive zen.