代码之家  ›  专栏  ›  技术社区  ›  Steven Smethurst

Electronjs无法打开X显示器

  •  0
  • Steven Smethurst  · 技术社区  · 3 年前

    我在尝试启动Electronjs应用程序时遇到以下错误

    [299:1006/231946.753542:ERROR:browser_main_loop.cc(1400)] Unable to open X display.
    
    The futex facility returned an unexpected error code./mnt/c/dev/XXXXX/electron-vue/node_modules/electron/dist/electron exited with signal SIGABRT
    
    1 回复  |  直到 3 年前
        1
  •  1
  •   Steven Smethurst    3 年前

    问题是,我试图在windows上使用WSL启动Electronjs应用程序。由于WSL不支持GUI(无头),因此无法启动ElectronJS应用程序。

    从Windows而不是WSL运行Electronjs应用程序

    推荐文章