Failed to install Electron in windows 10

Asked

Viewed 490 times

0

I’m trying to install Electron in windows 10 using these commands:

- git clone https://github.com/electron/electron-quick-start
- cd electron-quick-start
- npm install && npm start

I’m following in the footsteps of this website, but still I’m getting these mistakes:

> [email protected] postinstall C:\Users\System\Desktop\project\electron-quick-start\node_modules\electron
> node install.js

'node' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

So far, the number I use is as up to date as possible with the version 10.16.3 and npm 6.11.3.

What should I do to fix this mistake?

1 answer

1


'Node' is not recognized as an internal command

When you make that mistake, it’s usually PATH windows, which needs to add more these paths:

%USERPROFILE%/Appdata/Roaming/npm/node_modules/@angular/cli/bin

%USERPROFILE%/Appdata/Roaming/npm

If you don’t know how to change your PATH, here’s a quick tutorial:

Basically you have to access the environment variables, regardless of the Windows you are using.

Right-click the Computer and choose Properties:

inserir a descrição da imagem aqui

Choose "Advanced System Settings"

inserir a descrição da imagem aqui

Will open the following window:

inserir a descrição da imagem aqui

Click environment variables, the following window will open:

inserir a descrição da imagem aqui

Select Path and click edit

  • 1

    Thanks for the tutorial. The Node error is gone, but now another error has appeared tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80 at Clientrequest.onerror Whatever this is, you have some idea?

  • " tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80 at Clientrequest.onerror O". This error occurs at which time?

  • When I give npm install after downloading Electron from github. Here are more details https://pastebin.com/8FaPWY2K

  • Usually this is a proxy problem, if you do not use proxy, try using this command: >npm config set proxy null >npm config set https-proxy null

  • @System does not forget to upvote my answer :D

  • If you have a proxy, ai you use the following command: >npm config set proxy http://proxyhost:proxyport >npm config set https-proxy http://proxyhost:proxyport Do not forget to see if it is http or https

  • Thanks man, here worked on the fly

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.