Error message: [Error: ENOENT: no such file or directory, open '/Users/andreaswest/Documents/workspace/frontend/.desktop-installer/mac/Electron.app/Contents/Frameworks/Electron Helper EH.app/Contents/Info.plist']
Full log file:
DEBUG electronBuilder: calling build from electron-builder
• electron-builder version=20.5.0
• writing effective config file=.desktop-installer/electron-builder.yaml
DEBUG electronBuilder: moving node_modules out, because we have them already in app.asar
mv /Users/andreaswest/Documents/workspace/frontend/.meteor/desktop-build/node_modules /Users/andreaswest/Documents/workspace/frontend/.meteor/.desktop_node_modules
• packaging platform=darwin arch=x64 electron=10.1.3 appOutDir=.desktop-installer/mac
ERROR electronBuilder: error while building installer: OperationalError: ENOENT: no such file or directory, open '/Users/andreaswest/Documents/workspace/frontend/.desktop-installer/mac/Electron.app/Contents/Frameworks/Electron Helper EH.app/Contents/Info.plist'
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/packager/mac.ts:43:215
at processImmediate (internal/timers.js:456:21)
From previous event:
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/packager/mac.ts:43:61
at Generator.next (<anonymous>)
From previous event:
at createMacApp (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/packager/mac.js:142:21)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/macPackager.ts:263:11
at Generator.next (<anonymous>)
From previous event:
at MacPackager.beforeCopyExtraFiles (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/macPackager.js:364:11)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/platformPackager.ts:208:16
at Generator.next (<anonymous>)
at processImmediate (internal/timers.js:456:21)
From previous event:
at MacPackager.doPack (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/platformPackager.js:274:11)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/macPackager.ts:93:63
at Generator.next (<anonymous>)
From previous event:
at MacPackager.pack (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/macPackager.js:209:11)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/packager.ts:368:24
at Generator.next (<anonymous>)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16
at callback (/Users/andreaswest/Documents/workspace/frontend/node_modules/graceful-fs/polyfills.js:299:20)
at FSReqCallback.oncomplete (fs.js:167:5)
From previous event:
at Packager.doBuild (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/packager.js:438:11)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/packager.ts:312:52
at Generator.next (<anonymous>)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/graceful-fs/graceful-fs.js:144:16
at /Users/andreaswest/Documents/workspace/frontend/node_modules/graceful-fs/graceful-fs.js:61:14
at FSReqCallback.oncomplete (fs.js:154:23)
From previous event:
at Packager._build (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/packager.js:382:11)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/packager.ts:274:23
at Generator.next (<anonymous>)
at processImmediate (internal/timers.js:456:21)
From previous event:
at Packager.build (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/packager.js:338:11)
at /Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/src/index.ts:50:40
at Generator.next (<anonymous>)
From previous event:
at build (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder-lib/out/index.js:47:21)
at Object.build (/Users/andreaswest/Documents/workspace/frontend/node_modules/electron-builder/src/builder.ts:229:10)
at InstallerBuilder.build (/Users/andreaswest/Documents/workspace/frontend/node_modules/meteor-desktop/lib/electronBuilder.js:348:43)
at MeteorDesktop.buildInstaller (/Users/andreaswest/Documents/workspace/frontend/node_modules/meteor-desktop/lib/index.js:117:40)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
cause: [Error: ENOENT: no such file or directory, open '/Users/andreaswest/Documents/workspace/frontend/.desktop-installer/mac/Electron.app/Contents/Frameworks/Electron Helper EH.app/Contents/Info.plist'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/andreaswest/Documents/workspace/frontend/.desktop-installer/mac/Electron.app/Contents/Frameworks/Electron Helper EH.app/Contents/Info.plist'
},
isOperational: true,
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/andreaswest/Documents/workspace/frontend/.desktop-installer/mac/Electron.app/Contents/Frameworks/Electron Helper EH.app/Contents/Info.plist'
}
It worked previously, updated electron packages today (shouldn’t have done it), reversed the changes but now I’m stuck with this error and can no longer build for macOS on my Mac machine. Used to work fine.
I already removed node_modules and re-installed via npm i
to no avail.
Relevant installed packages:
"electron-updater": "^4.3.9",
"electron": "^10.1.3",
"electron-builder": "^20.5.0",
"electron-notarize": "^1.0.0",
"electron-packager": "^15.2.0",
"electron-rebuild": "^2.2.0",