electron 升级到macOS Monterey 12.3.1,“剧作家+电子”停止工作-我该如何修复它?

cetgtptt  于 2023-06-20  发布在  Electron
关注(0)|答案(1)|浏览(164)

我们启动基于电子的应用程序如下:

  1. test.beforeAll(async() => {
  2. electronApp = await _electron.launch({
  3. args: [
  4. path.join(__dirname, '../'),
  5. '--disable-gpu',
  6. '--whitelisted-ips=',
  7. '--disable-dev-shm-usage',
  8. ]
  9. });
  10. ...

以前很管用的。现在测试失败,并显示以下错误消息:

  1. electron.launch: Timeout 30000ms exceeded.
  2. 61 | createDefaultSettings();
  3. 62 |
  4. > 63 | electronApp = await _electron.launch({
  5. | ^

你可以在https://github.com/rancher-sandbox/rancher-desktop上看到测试。复制:
设置:

  1. git clone https://github.com/rancher-sandbox/rancher-desktop.git
  2. npm i

复制:

  1. npm run test:e2e
xzlaal3s

xzlaal3s1#

这可能与Monterey 12.3.1上的节点问题有关,因为它已经在默认端口5000上运行。
尝试禁用“Airplay接收器”像这篇文章,它为我工作。
“系统首选项”->“共享”->“Airplay接收器”
Why nodeJS is not working on macOS Monterey?

相关问题