我在執(zhí)行yarn 安裝依賴的時候一直提示這個錯誤
error E:\theia\node_modules\electron: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: E:\theia\node_modules\electron
Output:
RequestError: socket hang up
at ClientRequest.<anonymous> (E:\theia\node_modules\got\source\request-as-event-emitter.js:178:14)
at Object.onceWrapper (events.js:421:26)
at ClientRequest.emit (events.js:326:22)
at ClientRequest.origin.emit (E:\theia\node_modules\@szmarczak\http-timer\source\index.js:37:11)
at TLSSocket.socketOnEnd (_http_client.js:458:9)
解決
終端執(zhí)行 npm config set electron_mirror https://npm.taobao.org/mirrors/electron/就能正常運行了