Electron-builder: ERR_ELECTRON_BUILDER_CANNOT_EXECUTE | Electron builder fails if version in package.json is set to 10.0.0

Created on 20 Mar 2020  路  5Comments  路  Source: electron-userland/electron-builder


  • Version: 22.4.1

  • Target: win


npm run dist successfully creates installer which can be installed on windows. But if my version in package json is set to "10.0.0" or if any part of version is greater than 9, then npm run dist fails with below given error

AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.2\Bin\makensis.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

How to reproduce:

  1. Install electron builder
  2. Change version in package json to 10.0.0 or 0.0.10
  3. Run npm run dist
  4. See error in console

Most helpful comment

What did you change to achieve it? Having a related issue.

All 5 comments

IDK how, but this is working fine now.

What did you change to achieve it? Having a related issue.

@philippnoah I dont know, it got fixed automatically.

@asadmalik3 Hi, I am also stuck by this error. Please advise how to resolve it.

OS win10 pro
"electron": "^10.1.1",
"electron-builder": "^22.8.0"

@cnscorpions did you find a solution for that? (electron v10)

Was this page helpful?
0 / 5 - 0 ratings