我安装了 Electron 7.1.3,当我尝试运行该应用程序时出现此错误:
FATAL:atom_main_delegate.cc(211)] 不支持在没有 --no-sandbox 的情况下以 root 身份运行。见https://crbug.com/638180
当我使用 Debian 8 或 9 时会发生这种情况。我在Windows上使用它并且运行没有问题。我正在搜索有关此问题的信息,但我没有找到有关 Electron 和 Debian 的具体内容,只能运行:electron --no-sandbox
如果有人知道如何解决这个问题,我想在这里使用 Debian。
Nex*_*242 10
当我使用 sudo 运行我的电子应用程序时,我遇到了类似的问题:
sudo ./MyElectronApp
Run Code Online (Sandbox Code Playgroud)
[5612:0301/101026.813638:FATAL:electron_main_delegate.cc(211)] 不支持在没有 --no-sandbox 的情况下以 root 身份运行。请参阅https://crbug.com/638180。
所以为了添加--no-sandbox参数,我做了:
sudo ./MyElectronApp --no-sandbox
Run Code Online (Sandbox Code Playgroud)
它奏效了!!:)
我以为我必须使用参数构建我的应用程序,但它不起作用。
| 归档时间: |
|
| 查看次数: |
9022 次 |
| 最近记录: |