Following are the contents of log file while using yarn to install dependencies for a project scaffolded with create-electron however the issue does not exist when using npm
# This file contains the result of Yarn building a package (newswire@workspace:.)
# Script name: postinstall
• electron-builder version=24.9.1
• loaded configuration file=C:\Users\x\newswire\electron-builder.yml
• installing production dependencies platform=win32 arch=x64 appDir=C:\Users\x\newswire
⨯ C:\Users\x\AppData\Local\Temp\xfs-edbacdc9\yarn process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 324ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 744ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ electron@npm:28.2.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.12 must be built because it never has been before or the last one failed
➤ YN0007: │ newswire@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ newswire@workspace:. couldn't be built successfully (exit code 1, logs can be found here: C:\Users\x\AppData\Local\Temp\xfs-17ab0574\build.log)
➤ YN0000: └ Completed in 11m 33s
➤ YN0000: Failed with errors in 11m 34s
failedTask=installAppDeps stackTrace=Error: C:\Users\x\AppData\Local\Temp\xfs-edbacdc9\yarn process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 324ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 744ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ electron@npm:28.2.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.12 must be built because it never has been before or the last one failed
➤ YN0007: │ newswire@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ newswire@workspace:. couldn't be built successfully (exit code 1, logs can be found here: C:\Users\x\AppData\Local\Temp\xfs-17ab0574\build.log)
➤ YN0000: └ Completed in 11m 33s
➤ YN0000: Failed with errors in 11m 34s
at ChildProcess.<anonymous> (C:\Users\x\Desktop\desktopApps\newswire\.yarn\cache\builder-util-npm-24.8.1-fc3e50de3b-20555ebd25.zip\node_modules\builder-util\src\util.ts:251:14)
at Object.onceWrapper (node:events:629:26)
at ChildProcess.emit (node:events:514:28)
at ChildProcess.cp.emit (C:\Users\x\Desktop\desktopApps\newswire\.yarn\cache\cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1091:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Describe the bug
Following are the contents of log file while using yarn to install dependencies for a project scaffolded with create-electron however the issue does not exist when using npm
Used Scaffolding
create-electron
Used Package Manager
yarn
Validations