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参数


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM