简体   繁体   中英

How to solve ECONNRESET while installing Electron?

I am trying to install electron but getting ECONNRESET error despite trying multiple things :

  1. tried installing globally
  2. tried removing the proxy.
  3. tried a mirror address but not sure if the address was incorrect or some other issue. Errors

Error: read ECONNRESET ←[90m at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27)←[39m { errno: ←[32m'ECONNRESET'←[39m, code: ←[32m'ECONNRESET'←[39m, syscall: ←[32m'read'←[39m }

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron@6.0.8

postinstall: node install.js npm ERR! Exit status 1 npm ERR! npm

ERR! Failed at the electron@6.0.8 postinstall script. npm ERR! This is

probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!

C:\\Users\\anoopku\\AppData\\Roaming\\npm-cache_logs\\2019-09-11T07_20_01_482Z-debug.log

Error Message

尝试这个:

set "ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/" && npm install --unsafe-perm=true --allow-root

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM