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

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

我在执行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/就能正常运行了

相关文章
|
1月前
|
Python
解决安装ConcurrentLogHandler报错error in ConcurrentLogHandler setup command: use_2to3 is invalid.
本文介绍了在Python环境下安装ConcurrentLogHandler时遇到的"use_2to3 is invalid"错误的解决方法,主要是通过降级setuptools到57.5.0版本来解决该问题。
91 2
|
12月前
|
数据库管理
SVN 执行cleanup报错:Cleanup failed to process the following paths : 解决方法
引用:https://www.cnblogs.com/pinpin/p/11395438.html 在SVN更新时提示文件被锁住了,要求执行 clean up操作,执行clean up时又报clean up failed。造成的原因是在某次更新后,点击了cancel按钮,操作没有完成所以会锁住。解决方法如下:
1052 0
|
4月前
|
NoSQL C语言
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
1085 0
|
10月前
|
JavaScript 内存技术
使用nvm时报错:exit status 1: ļ Ѵ ʱ ޷ ļ 的解决办法
使用nvm时报错:exit status 1: ļ Ѵ ʱ ޷ ļ 的解决办法
288 0
|
C语言
安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1
安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1
554 0
|
开发工具 git
【经验分享】【Github】Error: Action failed with “The process ‘/usr/bin/git‘ failed with exit code 128“
【经验分享】【Github】Error: Action failed with “The process ‘/usr/bin/git‘ failed with exit code 128“
305 0
|
jenkins 持续交付 图形学
报错Command XXXX/dsymutil failed with exit code 11
报错Command XXXX/dsymutil failed with exit code 11
279 0
报错Command XXXX/dsymutil failed with exit code 11
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
174 0
|
资源调度
yarn start error Command failed with exit code 1解决
yarn start error Command failed with exit code 1解决
1048 0
|
JavaScript Linux Windows
imagemagick安装调用报错command failed
记录下通过nodejs调用imagemagick 的时候发现的一个错误,command failed -- crop .
imagemagick安装调用报错command failed