Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish failing on version error #3475

factorone opened this issue Nov 13, 2018 · 1 comment


None yet
2 participants
Copy link

commented Nov 13, 2018

  • Version: 20.31.0 -> 20.35.0
  • Version: 3.2 -> 4.0
  • Target: x64: NSIS, Zip, DMG

Started receiving errors on the publish command today after having had successful publishing requests for the last week and a half.

Stack trace:

TypeError: Invalid Version: 4.0
    at new SemVer (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\semver\semver.js:312:11)
    at Range.test (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\semver\semver.js:1137:15)
    at Object.satisfies (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\semver\semver.js:1189:16)
    at checkDependencies (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\app-builder-lib\src\util\packageMetadata.ts:96:41)
    at checkMetadata (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\app-builder-lib\src\util\packageMetadata.ts:66:5)
    at C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\app-builder-lib\src\packager.ts:278:5
    at (<anonymous>)
From previous event:
    at (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\app-builder-lib\src\packager.ts:237:14)
    at build (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\app-builder-lib\src\index.ts:59:28)
    at build (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\electron-builder\src\builder.ts:227:10)
    at then (C:\Users\bmworf\AppData\Local\Yarn\Data\global\node_modules\electron-builder\src\cli\cli.ts:46:19)
    at <anonymous>

Previously, it started giving me errors about Electron Updater needing to be version 4.0 or greater. So I upgraded it, and now start getting this on the electron-builder --publish=always command.


This comment has been minimized.

Copy link

commented Nov 13, 2018

I was able to rectify this by rolling my versions back:
Builder: 20.32.0
Updater: 3.2.3

So this is likely a bug in at least 20.33.0 or later.

develar added a commit that referenced this issue Nov 15, 2018

@develar develar added the bug label Nov 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.