【问题标题】:Running "Hello World" electron app in linux在 Linux 中运行“Hello World”电子应用程序
【发布时间】:2020-05-01 11:51:24
【问题描述】:

我想在 linux (CentOs) 中运行“Hello World”电子应用程序。我的应用程序有这个文件夹结构

当我运行 npm run start 时,依次运行 electron。

我看到以下错误

[10948:0114/140415.407127:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/staff/kjeeva/simple_electron_app/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755

【问题讨论】:

  • 请将截图替换成文字,否则搜索错误信息时找不到这个问题
  • 碰巧是应用程序以相同的 git 问题打开 github.com/electron/electron/issues/13984
  • 我发现electron-prebuilt被electron替换了!但我的应用程序窗口至少是电子预建的,但使用电子它甚至不会出现在屏幕上

标签: node.js linux centos electron chromium


【解决方案1】:

cd ./node_modules/electron/dist/

sudo chown root chrome-sandbox

chmod 4755 铬沙盒

https://github.com/electron/electron/issues/17972

【讨论】:

    猜你喜欢
    • 2012-08-16
    • 2018-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多