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

Bildschirmfoto 2019-11-10 um 18 17 53

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)

Most upvoted comments

It may seem stuck, but it is actually downloading the release zip of Electron from GitHub. But GitHub’s downloads are currently slow (~40KB/s for me) so just give it a while. The zip is around 60 MB. You can see the progress in the Network tab of the Activity Monitor in macOS.

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.

Same issue here on Win10 right now, tried several times. Also, even with --verbose no 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 electron

npm i electron@7.1.0 --save

after 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.