[英]Running "Hello World" electron app in linux
I want to run "Hello World" electron app in linux (CentOs).我想在 linux (CentOs) 中运行“Hello World”电子应用程序。 I have this folder structure for my app我的应用程序有这个文件夹结构
When I run npm run start, in turn runs electron .当我运行 npm run start 时,依次运行电子。
I see the following error我看到以下错误
[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
cd ./node_modules/ electron/dist/ cd ./node_modules/电子/dist/
sudo chown root chrome-sandbox sudo chown 根铬沙盒
chmod 4755 chrome-sandbox chmod 4755 铬沙盒
https://github.com/electron/electron/issues/17972 https://github.com/electron/electron/issues/17972
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.