Windows ENOENT error on app-builder.exe
See original GitHub issue-
Version: 19.53.6
-
Target: Windows 10
-
Shell: x64 Native Tools Command Prompt for VS 2017
Running electron-builder with following command: tsc && electron-builder
The build property of package.json:
"build": {
"productName": "Demo",
"appId": "mycompany.Demo",
"asar": true,
"win": {
"target": "nsis"
},
"nsis": {
"oneClick": false,
"allowElevation": false
},
"linux": {
"target": "AppImage",
"category": "Development"
},
"mac": {
"target": "dmg"
},
"icon": "build/icon",
"directories": {
"buildResources": "/build",
"output": "./dist"
},
"files": [
"**/*.js",
"**/*.html",
"**/*.ts",
"node_modules",
"assets",
"app"
],
"extraResources": [
{
"from": "./build/some_api",
"to": "some_api"
},
{
"from": "./build/some_other_api",
"to": "some_other_api"
},
{
"from": "./build/some_file_path",
"to": "some_file_path"
},
{
"from": "./some_other_file_path",
"to": "some_other_file_path"
}
]
}
Confirm that the above procedure works on Mac (on Linux other errors occur related to other issues already reported).
The following error occurs on running on Windows:
Error: Exit code: ENOENT. spawn C:\Users\Giorgos\AppData\Local\electron-builder\cache\app-builder\app-builder-v0.4.0-x64\app-builder.exe ENOENT
at c:\my\project\path\node_modules\builder-util\src\util.ts:122:16
at exithandler (child_process.js:211:5)
at ChildProcess.errorhandler (child_process.js:223:5)
at emitOne (events.js:96:13)
at ChildProcess.emit (events.js:188:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:213:12)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
From previous event:
at exec (c:\my\project\path\node_modules\builder-util\src\util.ts:85:3)
at c:\my\project\path\node_modules\electron-builder-lib\src\platformPackager.ts:596:23
at next (native)
at xfs.mkdir.er (c:\my\project\path\node_modules\fs-extra-p\node_modules\fs-extra\lib\mkdirs\mkdirs.js:37:14)
at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
at WinPackager.resolveIcon (c:\my\project\path\node_modules\electron-builder-lib\out\platformPackager.js:635:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\platformPackager.ts:575:25
at next (native)
at WinPackager.getOrConvertIcon (c:\my\project\path\node_modules\electron-builder-lib\out\platformPackager.js:610:11)
at Lazy.WinPackager._iconPath.Lazy (c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:60:43)
at Lazy.get value [as value] (c:\my\project\path\node_modules\lazy-val\src\main.ts:18:23)
at WinPackager.getIconPath (c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:200:17)
at c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:297:33
at next (native)
at WinPackager.signAndEditResources (c:\my\project\path\node_modules\electron-builder-lib\out\winPackager.js:414:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:348:18
From previous event:
at WinPackager.getOrConvertIcon (c:\my\project\path\node_modules\electron-builder-lib\out\platformPackager.js:610:11)
at Lazy.WinPackager._iconPath.Lazy (c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:60:43)
at Lazy.get value [as value] (c:\my\project\path\node_modules\lazy-val\src\main.ts:18:23)
at WinPackager.getIconPath (c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:200:17)
at c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:297:33
at next (native)
From previous event:
at WinPackager.signAndEditResources (c:\my\project\path\node_modules\electron-builder-lib\out\winPackager.js:414:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\winPackager.ts:348:18
at next (native)
From previous event:
at WinPackager.signApp (c:\my\project\path\node_modules\electron-builder-lib\out\winPackager.js:432:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\platformPackager.ts:216:16
at next (native)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at WinPackager.doPack (c:\my\project\path\node_modules\electron-builder-lib\out\platformPackager.js:283:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\platformPackager.ts:116:16
at next (native)
From previous event:
at WinPackager.pack (c:\my\project\path\node_modules\electron-builder-lib\out\platformPackager.js:201:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\packager.ts:361:24
at next (native)
at xfs.stat (c:\my\project\path\node_modules\fs-extra-p\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16)
at c:\my\project\path\node_modules\graceful-fs\polyfills.js:287:18
From previous event:
at Packager.doBuild (c:\my\project\path\node_modules\electron-builder-lib\out\packager.js:423:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\packager.ts:305:52
at next (native)
at c:\my\project\path\node_modules\graceful-fs\graceful-fs.js:99:16
at c:\my\project\path\node_modules\graceful-fs\graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
at Packager._build (c:\my\project\path\node_modules\electron-builder-lib\out\packager.js:367:11)
at c:\my\project\path\node_modules\electron-builder-lib\src\packager.ts:267:23
at next (native)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Packager.build (c:\my\project\path\node_modules\electron-builder-lib\out\packager.js:323:11)
at c:\my\project\path\node_modules\electron-builder\src\builder.ts:310:40
at next (native)
From previous event:
at _build (c:\my\project\path\node_modules\electron-builder\out\builder.js:61:21)
at build (c:\my\project\path\node_modules\electron-builder\src\builder.ts:280:10)
at then (c:\my\project\path\node_modules\electron-builder\src\cli\cli.ts:49:33)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Object.args [as handler] (c:\my\project\path\node_modules\electron-builder\src\cli\cli.ts:49:33)
at Object.runCommand (c:\my\project\path\node_modules\yargs\lib\command.js:235:44)
at Object.parseArgs [as _parseArgs] (c:\my\project\path\node_modules\yargs\yargs.js:1041:24)
at Object.get [as argv] (c:\my\project\path\node_modules\yargs\yargs.js:957:21)
at Object.<anonymous> (c:\my\project\path\node_modules\electron-builder\src\cli\cli.ts:43:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:16 (5 by maintainers)
Top Results From Across the Web
Signing electron-builder generated package on windows fails ...
For self-signed certificate, you'll probably need to first check if this cert was imported to your cert store. Then verify if the subject ......
Read more >Build Instructions (Windows) - Electron.js
Build Instructions (Windows). Follow the guidelines below for building Electron itself on Windows, for the purposes of creating custom Electron binaries.
Read more >Windows 下的electron 编译常见问题- Juwan - 博客园
Windows系统编译下载安装: node v9.8.0 yarn 1.9.4 安装windows编译工具npm install global windows ... app-builder.exe exited with code 1 Error: ...
Read more >electron-builder - Developers - Jitsi Community Forum
Hi, I'm using electron-builder to build jitsi-meet-electron app on windows from linux ubuntu.
Read more >electron-builder
A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update” support out...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m getting this issue on Mac and Windows. Not Linux. Also found it works on 19.53.2 and not 19.53.3
relevant extract from a travis build to help other searchers:
I am also having this issue. I did a little investigation and it seems that
19.53.3
is the first version with this issue. Let me know if I can help debug.