Reputation: 91
I am using Mac OSX sierra. I was using on el Capitan then I updated and now it's not working. I tried a clean installation of node and npm, even after that it's not working. I try "npm install electron --save-dev" but it get stuck on node install.js. I left it for an hour still no change.
I tried other packages from npm its working. I tried "npm install express" it worked.
Upvotes: 5
Views: 6206
Reputation: 24136
I also faced the same issue. It is downloading the files actually.
File size ~45MB so, it takes some time. You can use --verbose
flag to see the download status details.
$ npm install -g electron --verbose
Upvotes: 4
Reputation: 41
electron will download from remote, maybe you can try to use proxy or just use cnpm just as @Claim Yang said or try yarn yarn, hope that help you.
Upvotes: 0
Reputation: 329
This usually caused by an error of your network.
You computer cannot connect to the source of the files mentioned in install.js (not npm respositories), or running at a very low speed.
You may try
npm install -g cnpm --registry=https://registry.npm.taobao.org
then
cnpm install electron
And probably wait for several minutes?
Be patient.
Upvotes: 3