美文网首页
安装项目的时候老是报错:Command failed.

安装项目的时候老是报错:Command failed.

作者: w晚风 | 来源:发表于2023-11-29 21:41 被阅读0次

我在执行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)

解决

终端执行 npm config set electron_mirror https://npm.taobao.org/mirrors/electron/就能正常运行了

相关文章

网友评论

      本文标题:安装项目的时候老是报错:Command failed.

      本文链接:https://www.haomeiwen.com/subject/xcifgdtx.html