我正在執行wSL2 Ubuntu系統.我試圖遵循本教程来啟動Electron樣板.
執行yarn dev時遇到此錯誤:
[14143:0218/164010.657008: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/alex/final-project/test/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755
与
--no-sandbox
一起執行
产生相同的錯誤。
我尝試更改systemctl:
sysctl kernel.unprivileged_userns_clone=1
在wSL上不起作用.我試圖按照本教程訪問systemctl。
此操作無效,PowerShell命令已過時且
systemctl is-active dbus
返迴:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
任何帮助都將受到赞赏.預先感谢!
最新回復
- 5月前1 #
好吧,錯誤訊息告诉您该怎麼做,有一个
chrome-sandbox
檔案顯示的目錄中,您需要使用chroot和chown為其賦予適当的所有者和權限。