The futex facility returned an unexpected error code

简介: The futex facility returned an unexpected error code

产生场景

当一切步骤按照笔记:基于Vue的Electron开发配置后,启动的时候报如下错误:

The futex facility returned an unexpected error code点击复制复制失败已复制


最终从 GitHub 上翻 issue 找到相关解决方案,issue地址


解决方案

将启动参数加上 DISPLAY=:0 ,修改 package.json 文件,如下所示:

{
  "scripts": {
    "start": "cross-env DISPLAY=:0 vue-cli-service electron:serve"
  }
}点击复制复制失败已复制


接下来通过 $ yarn start 命令即可正常启动

目录
相关文章
|
6月前
|
应用服务中间件 nginx Windows
[emerg] 15060#200: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket ......
[emerg] 15060#200: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket ......
182 0
|
Java Maven
An attempt was made to call a method that does not exist. The attempt was made from the following
An attempt was made to call a method that does not exist. The attempt was made from the following
454 0
SignTool Error: An error occurred while attempting/Error information: “SignerTimeStamp() failed.“
SignTool Error: An error occurred while attempting/Error information: “SignerTimeStamp() failed.“
148 0
abort: error: Temporary failure in name resolution
abort: error: Temporary failure in name resolution
197 0
Wrong Subtraction
Wrong Subtraction
66 0
Wrong Subtraction
|
Go iOS开发
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
450 0