gpt4 book ai didi

node.js - 在 linux 中运行 "Hello World" Electron 应用程序

转载 作者:行者123 更新时间:2023-12-03 12:34:05 26 4
gpt4 key购买 nike

我想在 linux (CentOs) 中运行“Hello World” Electron 应用程序。我的应用程序有这个文件夹结构

enter image description here

当我运行 npm run start 时,依次运行 electron。

我看到以下错误

[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/

sudo chown root chrome-sandbox

chmod 4755 Chrome 沙盒

https://github.com/electron/electron/issues/17972

关于node.js - 在 linux 中运行 "Hello World" Electron 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59739113/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com