question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building on OSX for win32 throws an "Unknown Error -86"

See original GitHub issue

Hey, I’m trying to build my app for my colleagues. They are using windows, though I keep getting the following error:

An unhandled rejection has occurred inside Forge:
Error: spawn Unknown system error -86
    at ChildProcess.spawn (internal/child_process.js:394:11)
    at spawn (child_process.js:540:9)
    at /usr/local/lib/node_modules/@electron-forge/cli/node_modules/rcedit/lib/rcedit.js:44:19
    at new Promise (<anonymous>)
    at module.exports (/usr/local/lib/node_modules/@electron-forge/cli/node_modules/rcedit/lib/rcedit.js:43:10)
    at WindowsApp.runRcedit (/usr/local/lib/node_modules/@electron-forge/cli/node_modules/electron-packager/src/win32.js:94:31)
    at WindowsApp.create (/usr/local/lib/node_modules/@electron-forge/cli/node_modules/electron-packager/src/win32.js:106:5)
    at async Promise.all (index 0)
    at packager (/usr/local/lib/node_modules/@electron-forge/cli/node_modules/electron-packager/src/index.js:165:20)
    at _default (/usr/local/lib/node_modules/@electron-forge/cli/node_modules/@electron-forge/core/src/api/package.ts:206:3)
    at _default (/usr/local/lib/node_modules/@electron-forge/cli/node_modules/@electron-forge/core/src/api/make.ts:141:5)
    at /usr/local/lib/node_modules/@electron-forge/cli/src/electron-forge-make.ts:41:5 {
  errno: 'Unknown system error -86',
  code: 'Unknown system error -86',
  syscall: 'spawn'
}

Electron Forge was terminated. Location:
{}

Here’s my configuration.

config": {
    "forge": {
      "packagerConfig": {},
      "makers": [
        {
          "name": "@electron-forge/maker-squirrel",
          "config": {
            "name": "lumifish_admin"
          }
        },
        {
          "name": "@electron-forge/maker-zip",
          "platforms": [
            "darwin"
          ]
        },
        {
          "name": "@electron-forge/maker-deb",
          "config": {}
        },
        {
          "name": "@electron-forge/maker-rpm",
          "config": {}
        }
      ],
      "plugins": [
        [
          "@electron-forge/plugin-webpack",
          {
            "mainConfig": "./webpack.main.config.js",
            "renderer": {
              "config": "./webpack.renderer.config.js",
              "entryPoints": [
                {
                  "html": "./src/views/main/index.html",
                  "js": "./src/views/main/index.ts",
                  "name": "main_window"
                },
                {
                  "html": "./src/views/loading/index.html",
                  "js": "./src/views/loading/index.ts",
                  "name": "loading_window"
                },
                {
                  "html": "./src/views/login/index.html",
                  "js": "./src/views/login/index.ts",
                  "name": "login_window",
                  "ignore": []
                }
              ]
            }
          }
        ]
      ]
    }
  }

The command:

electron-forge make --platform="win32"

I also really have no idea what I’m doing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
DogAndHerDudecommented, Aug 30, 2019

After looking further into this, there is not solution for this for MacOS Catalina. Pretty sad that Apple went and did a stupid thing with the 64bit only. Dang, well, I guess I’ll have to go and build apps locally on everyone’s computers.

1reaction
maleptcommented, Dec 12, 2019

Upgrade Forge to latest v6 and make sure you’ve installed wine-stable from Homebrew, which should install wine64.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building on OSX for win32 throws an "Unknown Error -86"
Hey, I'm trying to build my app for my colleagues. They are using windows, though I keep getting the following error: An unhandled...
Read more >
Unknown system error -86 Electron app packaging on Mac for ...
Packaging app for platform win32 ia32 using electron v13.1.1. spawn Unknown system error -86. home@Homes-Mac-mini crypto-app %.
Read more >
[webpack-cli] error: spawn unknown system error -86 - You.com
This is an issue with a dependency we use and M1 Macs. I build a project laravel + vuejs in macos. I follow...
Read more >
General Error Messages | InterSystems Error Reference
This document contains tables of numeric error codes and their corresponding error messages for InterSystems IRIS® data platform. Commonly, these error ...
Read more >
iOS update and restore errors - Apple Support (CA)
If your device couldn't be restored and you get a message that "an unknown error occurred [error number]," use these steps.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found