在 "npm start" 上使用 WSL + 电子 + 打字稿获取 SUID 沙盒帮助程序错误



如标题中所示。我正在运行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非常旧,与electronic快速启动typescript/package.json#L23的Electronv6.0.8不兼容。

根据Electron6.0.0的发布说明,6.0.8与NodeJS12.4.0兼容。

您必须使用NodeJSv12.4.0

最新更新