Vue-cli-plugin-electron-builder: Fail to build windows on macOS Catalina

Created on 11 Sep 2019  Â·  10Comments  Â·  Source: nklayman/vue-cli-plugin-electron-builder

Fail to build windows on macOS Catalina

npm run electron:build -- --win

  • writing effective config  file=dist_electron/builder-effective-config.yaml
  • packaging       platform=win32 arch=x64 electron=6.0.8 appOutDir=dist_electron/win-unpacked
  • default Electron icon is used  reason=application icon is not set
  • building        target=nsis file=dist_electron/build_test Setup 0.1.0.exe archs=x64 oneClick=true perMachine=false
 ERROR  Error: Exit code: ENOENT. spawn prlctl ENOENT
Error: Exit code: ENOENT. spawn prlctl ENOENT
    at /Users/zhouyang/coding/build_test/node_modules/builder-util/src/util.ts:125:16
    at exithandler (child_process.js:297:5)
    at ChildProcess.errorhandler (child_process.js:309:5)
    at ChildProcess.emit (events.js:200:13)
    at ChildProcess.EventEmitter.emit (domain.js:471:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:74:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] electron:build: `vue-cli-service electron:build "--win"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] electron:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/zhouyang/.npm/_logs/2019-09-11T03_05_16_087Z-debug.log
awaiting OP response

Most helpful comment

@nklayman I just updated to Catalina and i'm facing this same issue. I did what you suggested but could not get it to work. @jie did you manage to resolve this issue?

All 10 comments

I don't have access to a mac, so I can't reproduce the issue myself. Try removing node_modules and reinstalling deps. Also, try upgrading to the latest electron-builder by adding the following to your package.json:

"resolve": {
  "electron-builder": "^21.2.0"
}

You will need to use yarn for this to work.

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@nklayman I just updated to Catalina and i'm facing this same issue. I did what you suggested but could not get it to work. @jie did you manage to resolve this issue?

@jie @mazlano27 I am also experiencing this. Any updates?

@ukmarn I ended up building my app on a Windows pc. Based on what I found - this error is due to Catalina dropping support for 32 bit apps (like wine which was used to create the windows installers)

I'm still seeing this. I've attempted to follow the instructions that @maximilianschmidt linked to and it still doesn't build. It gives me the same error Error: spawn Unknown system error -86

add this to your package.json

  "resolutions": {
    "electron-builder": "22.2.0"
  },
Was this page helpful?
0 / 5 - 0 ratings

Related issues

grantdfoster picture grantdfoster  Â·  3Comments

TrustNguyen picture TrustNguyen  Â·  5Comments

JamesDream87 picture JamesDream87  Â·  5Comments

AlexSHoffman picture AlexSHoffman  Â·  3Comments

sanch941 picture sanch941  Â·  6Comments