Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Electron não instala no windows 10

Executo: npm install electron@1.6.1 --save Dá o seguinte erro:

C:\Cursos\Electron>npm install electron@1.6.1 --save npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "electron@1.6.1" "--save" npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! code EACCES npm ERR! errno EACCES npm ERR! syscall connect

npm ERR! Error: connect EACCES 151.101.92.162:80 npm ERR! at Object.exports._errnoException (util.js:1020:11) npm ERR! at exports._exceptionWithHostPort (util.js:1043:20) npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14) npm ERR! { Error: connect EACCES 151.101.92.162:80 npm ERR! at Object.exports._errnoException (util.js:1020:11) npm ERR! at exports._exceptionWithHostPort (util.js:1043:20) npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14) npm ERR! code: 'EACCES', npm ERR! errno: 'EACCES', npm ERR! syscall: 'connect', npm ERR! address: '151.101.92.162', npm ERR! port: 80 } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request: npm ERR! C:\Cursos\Electron\npm-debug.log

1 resposta
solução!

Olá, pode ser algum firewall impedindo o download do pacote, para testar desative antivírus/firewall e tente novamente.