Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install.js cmd hangs - unable to install Electron js npm on windows

I am a bit new to the node npm electron world and recently started developing applications related to electron js. While I am able to install and create electron application on my office system at the same time I am having issue with the personal system.

When the execute the command npm install electron --save-dev the command hangs and returns no error. no error log in nodejs-log file as well.

Please help me out with this issue.

Things that I tried are as below:

  • Some people told to remove ~/.electron and re-install, but no luck
  • Some told that it occurs due to slow internet connection speed, but mine is above 1mbps
  • Some told to use electron-prebuilt but prebuilt is depricated and is replaced by electron
  • some told to install electron globally and not locally, used -g but not fate
  • Tried re-installation of Node on machine but same issue persist.

Details:

  • I am using the latest version on Node - 6.9.5 [LTS - hence node is stable]
  • Version on npm is 4.2.0
  • System is windows 7

Screenshot of the command prompt execution script where the command hangs

npm install electron - node install.js hangs

like image 946
Ankit Dhadse Avatar asked Oct 29 '22 11:10

Ankit Dhadse


1 Answers

The electron binary takes time to install and the progress bar is not shown in the quiet mode.

Try adding --verbose to your npm command to see the progress bar.

like image 146
Rushabh Mehta Avatar answered Nov 14 '22 21:11

Rushabh Mehta