linux环境运行electron报chrome-sandbox错误解决办法

linux运行electron报如下错误:

FATAL:setuid_sandbox_host.cc(158)] 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/user/Desktop/aep/source/build/linux-unpacked/chrome-sandbox is owned by root and has mode 4755.

使用以下命令解决:

sudo chown root chrome-sandbox && sudo chmod 4755 chrome-sandbox

也可以在启动的控制台加上 --no-sandbox参数

posted @ 2021-06-29 15:05  广林  阅读(6565)  评论(0编辑  收藏  举报