element-hq / element-hq/element-web

CI failure: "Electron failed to install correctly"

Open
#34,024 2 comments 0 reactions 0 assignees View on GitHub
A-Developer-Experience A-Testing T-Task
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

https://github.com/element-hq/element-web/actions/runs/28372988930/job/84055268201

```
⎯⎯⎯⎯⎯⎯ Failed Suites 2 ⎯⎯⎯⎯⎯⎯⎯

FAIL element-desktop src/args.test.ts [ apps/desktop/src/args.test.ts ]
FAIL element-desktop src/protocol.test.ts [ apps/desktop/src/protocol.test.ts ]
Error: Electron failed to install correctly. Please delete `node_modules/electron` and run "npx install-electron --no" manually.
❯ getElectronPath ../../node_modules/.pnpm/electron@42.4.1/node_modules/electron/index.js:43:13
❯ Object. ../../node_modules/.pnpm/electron@42.4.1/node_modules/electron/index.js:52:18

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯

Test Files 2 failed | 59 passed (61)
Tests 484 passed (484)
Start at 12:46:41
Duration 28.25s (transform 16.57s, setup 29.49s, import 28.79s, tests 7.31s, environment 4.71s)
```

Contributor guide

Open the contributing guide

Research direction

Start with the linked CI run and the failing apps/desktop/src/args.test.ts and apps/desktop/src/protocol.test.ts suites. Check how Electron is installed in the CI environment, including the reported npx install-electron --no command, then rerun the affected tests. Done means the Electron installation succeeds and all 61 suites pass in CI.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
ci-cd, desktop, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.