如标题中所示。我正在运行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
。