在Linux中运行“ Hello World”电子应用

时间:2020-01-14 17:41:46

标签: node.js linux centos electron chromium

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

enter image description here

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

我看到以下错误

[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

1 个答案:

答案 0 :(得分:1)

cd ./node_modules/ electronic / dist /

sudo chown root chrome-sandbox

chmod 4755镀铬沙盒

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