I am trying to install electron but getting ECONNRESET error despite trying multiple things :
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! npmERR! 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
尝试这个:
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.