Electron installing abort - ECONNRESET

一曲冷凌霜 提交于 2021-01-07 01:37:50

问题


I'm trying to install electron via npm and I get this error : How can I solve it?


回答1:


You can set custom mirrors to download electron from a seperate mirror. Just add this before npm install, or inside the hooks somewhere.

ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"

I've always used this because github were extremely slow for electron release downloads even on the servers.




回答2:


Might be a bad internet connection or a proxy issue. You may want to try to remove your proxy:

npm config rm proxy
npm config rm https-proxy



回答3:


It's better to install electron globally. You can try npm i electron -g --verbose also update your npm before install electron npm i -g npm



来源:https://stackoverflow.com/questions/52510812/electron-installing-abort-econnreset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!