【问题标题】:Getting SUID Sandbox Helper Error With WSL + Electron + Typescript on "npm start"在“npm start”上使用 WSL + Electron + Typescript 获取 SUID Sandbox Helper 错误
【发布时间】:2020-06-30 21:17:27
【问题描述】:

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

【问题讨论】:

    标签: node.js reactjs typescript npm electron


    【解决方案1】:

    您的 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-06
      • 2019-05-07
      • 1970-01-01
      • 2021-04-19
      相关资源
      最近更新 更多