请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装不了electron。。RequestError: read ECONNRESET

一直卡在这个错误上出不去了。。

> electron@13.1.2 postinstall /usr/local/lib/node_modules/electron
> node install.js

RequestError: read ECONNRESET
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/electron/node_modules/got/source/request-as-event-emitter.js:178:14)
    at Object.onceWrapper (events.js:418:26)
    at ClientRequest.emit (events.js:323:22)
    at ClientRequest.origin.emit (/usr/local/lib/node_modules/electron/node_modules/@szmarczak/http-timer/source/index.js:37:11)
    at TLSSocket.socketErrorListener (_http_client.js:426:9)
    at TLSSocket.emit (events.js:311:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@13.1.2 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@13.1.2 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!     /Users/tulies/.npm/_logs/2021-06-12T10_15_43_261Z-debug.log

正在回答

1回答

同学你好 可以试着使用 cnpm 或者淘宝代理安装一下 由于 electron 比较大 使用npm 安装的时候有可能会出现超时等错误

0 回复 有任何疑惑可以回复我~
  • 提问者 tulies #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2021-08-06 10:17:57
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号