Affected Package
electron-winstaller
: indirect dependency via electron-builder
- electron-builder: starting from 26.0.3 (Before version its working)
Environment
- OS: Windows 11
- Node.js:
v22.17.1
(32-bit, x86)
- NPM:
10.x.x
- electron-builder:
26.0.3
and above
- electron-winstaller: as pulled via
electron-builder
- Usage context: Building Electron app with NSIS target
- App is inside a monorepo using Electron + NSIS configuration
Problem Summary
When installing dependencies (npm install
) for a project using electron-builder >= 26.0.3
, the install fails immediately on 32-bit Node.js, throwing:
Error: ENOENT: no such file or directory, copyfile ...\vendor\7z-ia32.exe → ...\vendor\7z.exe
Reproduction Steps
Use 32-bit Node.js (ia32 build)
Set electron-builder version to 26.0.3 or higher
Run npm install
Observe that installation fails immediately with missing 7z-ia32.exe error
json
{
"devDependencies": {
"electron": "30.0.0",
"electron-builder": "26.0.3"
}
}