Error while building package for jsreport with electron for windows
-
I am trying to build jsreport in electron js as per this post
https://jsreport.net/blog/pdf-reports-in-electron-app
However - when I try to build app for windows with ia32 -- i get below error.(base) ninad@Ninads-MacPro16:jsreport$ npm run pack
jsreport-in-electron-app@0.0.0 pack
electron-builder --win --ia32• electron-builder version=20.19.2
• loaded configuration file=package.json ("build" field)
• writing effective config file=dist/electron-builder-effective-config.yaml
• no native production dependencies
• packaging platform=win32 arch=ia32 electron=2.0.2 appOutDir=dist/win-ia32-unpacked
Error: spawn Unknown system error -86
at ChildProcess.spawn (internal/child_process.js:403:11)
at spawn (child_process.js:577:9)
at execFile (child_process.js:248:17)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/builder-util/src/util.ts:89:5
at new Promise (<anonymous>)
at exec (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/builder-util/src/util.ts:88:10)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/builder-util/src/wine.ts:72:16
From previous event:
at execWine (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/builder-util/src/wine.ts:64:8)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/winPackager.ts:334:11
at Generator.next (<anonymous>)
at processImmediate (internal/timers.js:462:21)
From previous event:
at WinPackager.signAndEditResources (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/winPackager.ts:272:158)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/winPackager.ts:367:21
at go$readdir$cb (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqCallback.oncomplete (fs.js:180:23)
From previous event:
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/winPackager.ts:365:27
at Generator.next (<anonymous>)
From previous event:
at WinPackager.signApp (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/winPackager.ts:359:73)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/platformPackager.ts:233:16
at Generator.next (<anonymous>)
at processImmediate (internal/timers.js:462:21)
From previous event:
at WinPackager.doPack (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/platformPackager.ts:158:165)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/platformPackager.ts:113:16
at Generator.next (<anonymous>)
From previous event:
at WinPackager.pack (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/platformPackager.ts:111:95)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/packager.ts:369:24
at Generator.next (<anonymous>)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/graceful-fs/polyfills.js:287:18
at FSReqCallback.oncomplete (fs.js:193:5)
From previous event:
at Packager.doBuild (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/packager.ts:337:39)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/packager.ts:313:52
at Generator.next (<anonymous>)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/graceful-fs/graceful-fs.js:99:16
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqCallback.oncomplete (fs.js:180:23)
From previous event:
at Packager._build (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/packager.ts:290:133)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/packager.ts:286:23
at Generator.next (<anonymous>)
at processImmediate (internal/timers.js:462:21)
From previous event:
at Packager.build (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/packager.ts:243:14)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/src/index.ts:52:40
at Generator.next (<anonymous>)
From previous event:
at build (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder-lib/out/index.js:220:17)
at build (/Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder/src/builder.ts:224:10)
at /Users/ninad/projects/electronjs-apps/jsreport/node_modules/electron-builder/src/cli/cli.ts:46:19