gpt4 book ai didi

node.js - 在 “npm start”上使用WSL + Electron + Typescript获取SUID Sandbox Helper错误

转载 作者:行者123 更新时间:2023-12-03 12:41:21 27 4
gpt4 key购买 nike

如标题中所示。我正在运行Node v8.10.0,尝试遵循有关Electron + Typescript的基本教程:
https://github.com/electron/electron-quick-start-typescript

完整的错误消息如下:

[699:0319/131800.461011: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 /mnt/c/Users/curio/Visual Studio Workspace/JSONDemo/JSONDemo/spectral-game/level-editor/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.

最佳答案

您的NodeJS版本v8.10.0很旧,并且与electron-quick-start-typescript/package.json#L23具有的Electron v6.0.8不兼容。

根据Electron 6.0.0的发行说明,6.0.8与NodeJS 12.4.0兼容。

您必须使用NodeJS v12.4.0

关于node.js - 在 “npm start”上使用WSL + Electron + Typescript获取SUID Sandbox Helper错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60762243/

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