Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install electron on node for windows hangs

I am following the quick installtion guide on electron :http://electron.atom.io/

Script:

Clone the Quick Start repository

git clone https://github.com/electron/electron-quick-start

Go into the repository

cd electron-quick-start

Install the dependencies and run

npm install && npm start

The installation is stuck at :

Node Install.js - this command is executed with npm install && npm start.

Is there a way i could find out what node install.js is doing in the backend to workout why it's stuck?

like image 834
joe Avatar asked May 04 '16 21:05

joe


People also ask

What to do if npm install hangs?

To solve the issue, try removing the entire node_modules/ folder and the package-lock. json file. Then try running the npm install command again. That may fix the issue.

Do I need to restart my PC after installing Nodejs?

Follow the prompts to select an install path and ensure the npm package manager feature is included along with the Node. js runtime. This should be the default configuration. Restart your computer after the installation is complete.


1 Answers

with --verbose it makes it much more obvious if you're somehow interrupting the electron module download during node_modules install this will help to correct this by observing the download and installation process with:

npm install electron -g --verbose

With this command you will install global Electron. You can not cancel until the download process is complete. Delete the folder node_modules and reinstall.

like image 172
yido Avatar answered Sep 16 '22 12:09

yido