You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Installing Electron fails under Node.js 26.1.0+ and 24.16.0+ #51619
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
42.0.1
What operating system(s) are you using?
Other Linux
Operating System Version
debian trixie
What arch are you using?
x64
Last Known Working Electron version
No response
Does the issue also appear in Chromium / Google Chrome?
No
Expected Behavior
Running npx install-electron should install the electron binaries under node_modules/...
Actual Behavior
Binaries are not installed. The extraction of the zip file fails because of this problem in the used extract-zip npm package.
Testcase Gist URL
No response
Additional Information
Electron v42.x installation fails on latest node v26.x and v24.x versions.
Reacted by Shaotong Sun, rel, l, Kristjan ESPERANTO, Julián Cruciani, Aiden, Juraci de Lima Vieira Neto, Ben Schattinger, Dan Mooney, Vignesh Selvaraj and 20 more
Thanks for reporting and linking the upstream issue!
CC @erickzhao (who wrote the new installation feature) and @malept (who I believe has push access to extract-zip)
EDIT: Erick told me that his PR didn't touch this part of the extraction process (so it should also happen on Electron 41 and below), but that he'll likely be able to look into the issue.
I did some console.log debugging by running node on the install.js directly, and in my case what happens is that extractFile is called, but the promise it returns is not and path.txt is not written:
extract() is called (i tested by adding console.log to node_modules/.pnpm/[email protected]/node_modules/extract-zip/index.js, and it extracts v8_context_snapshot.bin but not the other files from ~/.cache/electron/9ae33c148c9d1a94c0e65d63fdc2c1443b43977f61a3f2679788e0d5d7d2d370/electron-v41.6.0-linux-x64.zip.
Same problem with dietpi on raspberry 4.
Installation process throws no errors even with --verbose option
npm install --verbose electron
npm verbose cli /usr/local/bin/node /usr/local/bin/npm
npm info using [email protected]
npm info using [email protected]
npm verbose title npm install electron
npm verbose argv "install" "--loglevel" "verbose" "electron"
npm verbose logfile logs-max:10 dir:/root/.npm/_logs/2026-05-18T15_00_22_507Z-
npm verbose logfile /root/.npm/_logs/2026-05-18T15_00_22_507Z-debug-0.log
npm verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules
npm http cache https://registry.npmjs.org/electron 136ms (cache hit)
npm http cache electron@https://registry.npmjs.org/electron/-/electron-42.1.0.tgz 0ms (cache hit)
npm http cache electron-nightly@https://registry.npmjs.org/electron-nightly/-/electron-nightly-44.0.0-nightly.20260515.tgz 0ms (cache hit)
added 1 package, and changed 1 package in 5s
225 packages are looking for funding
run `npm fund` for details
npm verbose cwd /root/MagicMirror
npm verbose os Linux 6.18.29+rpt-rpi-v8
npm verbose node v26.1.0
npm verbose npm v11.14.1
npm verbose exit 0
npm info ok
node -v
Node.js v26.1.0
Error Message:
Downloading Electron binary...
node:fs:436
return binding.readFileUtf8(path, stringToFlags(options.flag));
^
Error: ENOENT: no such file or directory, open '/root/MagicMirror/node_modules/electron/path.txt'
at Object.readFileSync (node:fs:436:20)
at getElectronPath (/root/MagicMirror/node_modules/electron/index.js:47:25)
at Object.<anonymous> (/root/MagicMirror/node_modules/electron/index.js:52:18)
at Module._compile (node:internal/modules/cjs/loader:1856:14)
at Object..js (node:internal/modules/cjs/loader:1996:10)
at Module.load (node:internal/modules/cjs/loader:1579:32)
at Module._load (node:internal/modules/cjs/loader:1381:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1602:12)
at require (node:internal/modules/helpers:191:16) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/root/MagicMirror/node_modules/electron/path.txt'
}
Activity
nikwen commentedon May 14, 2026
Thanks for reporting and linking the upstream issue!
CC @erickzhao (who wrote the new installation feature) and @malept (who I believe has push access to
extract-zip)EDIT: Erick told me that his PR didn't touch this part of the extraction process (so it should also happen on Electron 41 and below), but that he'll likely be able to look into the issue.
khassel commentedon May 15, 2026
Thanks for looking into this, can confirm that this also occurs with electron
v41andv40(under nodev26.1.0).Moomito commentedon May 16, 2026
Same issue here, Arch Linux, 26.1.0 did not work, downgrading to node 24 fixed it. Electron 42.0.1, and 42.1 seemingly too.
link2xt commentedon May 17, 2026
I did some
console.logdebugging by runningnodeon the install.js directly, and in my case what happens is thatextractFileis called, but the promise it returns is not andpath.txtis not written:electron/npm/install.js
Lines 82 to 95 in b36120f
extract() is called (i tested by adding console.log to node_modules/.pnpm/[email protected]/node_modules/extract-zip/index.js, and it extracts
v8_context_snapshot.binbut not the other files from~/.cache/electron/9ae33c148c9d1a94c0e65d63fdc2c1443b43977f61a3f2679788e0d5d7d2d370/electron-v41.6.0-linux-x64.zip.link2xt commentedon May 17, 2026
There is an extract-zip issue: max-mapper/extract-zip#154
EDIT: this issue is actually referenced in the first post.
AlfredoCubitos commentedon May 18, 2026
Same problem with dietpi on raspberry 4.
Installation process throws no errors even with
--verboseoptionError Message:
97 remaining items
build: complete Electron prebuilt extraction before the legal step (#36)
fix: stop publish-branch job from poisoning the node_modules cache (p…
ci: 固定していた Node 22 を外し、extract-zip の差し替えで Node 24 全域を通す
chore(deps): remove extract-zip race exposure on Node.js 24
fix: electron zip extraction under node 26.1.0+ on Linux
fix: electron zip extraction under node 26.1.0+ on Linux
fix: electron zip extraction under node 26.1.0+ on Linux
Add Electron QA infra: Playwright E2E suite + interactive CDP driver (#…
Repair the electron binary on every launch; stop app.sh hanging on a …
install: full local reinstall flow with electron self-heal
chore(deps): align node engine range with pnpm 12 (#21025)
chore(deps): align node engine range with pnpm 12 (CherryHQ#21025)
ui: Electron 33 -> 44.5.0; drop the #51619 extract-zip workaround
fix: override yauzl to repair Electron install on Node 24.16+/26.1+
fix: override yauzl to repair Electron install on Node 24.16+/26.1+