I installed Electron 7.1.3, when I try to run the app this error appears:
FATAL:atom_main_delegate.cc(211)] Running as root without –no-sandbox is not supported. See https://crbug.com/638180
This happens when I use Debian 8 or 9. I used it on Windows and this runs with no problem. I was searching info about this problem but I didn’t find something concrete with Electron and Debian, only run: electron --no-sandbox
If someone knows how to solve this, I wanna use Debian here.
2
Answers
I had a similar issue when I run my electron app with sudo:
[5612:0301/101026.813638:FATAL:electron_main_delegate.cc(211)] Running as root without –no-sandbox is not supported. See https://crbug.com/638180.
so In order to add –no-sandbox parameter I did:
and it worked!! 🙂
I thought I had to build my app with parameter but it does not work.
Quote from Process Sandboxing to explain what a sandbox does:
And quote from Disabling Chromium’s sandbox (testing only):
To disable it, run
<your-app-name> --no-sandbox
.