Install.js cmd freezes - unable to install Electron js npm on windows

I am a little new to the electronics world of node npm and have recently started developing electronic js related applications. Although I can install and create an electronic application in my office system, at the same time I have a problem with my personal system.

When the command is executed, the npm install electron --save-devcommand freezes and does not return an error. no error is logged in the nodejs-log file.

Please help me with this problem.

The things I tried are the following:

  • Some people said to uninstall ~/.electronand reinstall, but no luck
  • Some said this is due to the slow speed of the Internet connection, but mine is above 1 Mbps.
  • Some were told to use electron-prebuilt, but the pre-engineered one is stripped and replaced by an electron
  • someone said to install an electron globally, not locally, used -g, but not fate
  • A trial reinstallation of node on the machine, but the same problem persists.

Details:

  • I use the latest version on Node - 6.9.5 [LTS - hence node is stable]
  • Npm version - 4.2.0
  • Windows 7 system

Screenshot of a command line script execution where the command freezes

npm install electron - node install.js freezes

+4
source share
2 answers

, .

--verbose npm, .

+1

...

. :

npm -g -prebuilt

npm WARN electronic-prebuilt@1.4.13: -   . . http://electron.atom.io/blog/2016/08/16/npm-

C:\Users\****\AppData\\npm\electronic → C:\Users\****\AppData\\np \ node_modules\-\cli.js

electronic-prebuilt@1.4.13 postinstall C:\Users\****\AppData\\npm\node_m odules\- node install.js

C:\Users\****\AppData\Roaming\

`- electron-prebuilt@1.4.13

, . , - , .

0

Source: https://habr.com/ru/post/1670363/


All Articles