-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fatal error: Unable to parse version string #400
Comments
Possibly related to npm/npm#8574. |
Try changing the |
I am getting the same error when building for win32 on a mac. |
I can't reproduce either error.
This error also doesn't occur in our CI tests, which we have for all three platforms. The error message comes from @SimonRoth does the error occur when you build for Windows x64? Are you sure @adamweeks Perhaps make sure that your version only contains ASCII? I'm at a loss as to what else to recommend trying here. (I'm assuming you're getting the exact same |
Good morning guys. It turned out that the error occures due to different variable substitution on Windows (see npm/npm#8574 and http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/#thewindowsproblem). When changing
the build passes without errors. It seems that it is not possible to run a build command using variable substitution cross plattform at the moment. |
I'm closing this issue then, as the original problem has to do with NPM and not electron-packager. |
Okay, thanks. |
On Windows, project cannot be built sucessfully by original `package.json`. There are 2 causes: 1. Different variable substitution (`$npm_package_version to %npm_package_version%`). See also: electron/packager#400 2. `zip` command is not supported on Windows, so it is currently removed to make project be built successfully. (compress output files manually with `WinRAR`, `7-Zip`... if it is necessay)
Fatal error: Unable to parse version string
when packaging app for platform win32 ia32 using electron v1.2.3 on Windows 8.1 Pro.7.0.4
electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --all
1.2.3
Windows 8.1 Pro x64
--all
Can be reproduced by building https://github.com/sindresorhus/electron-boilerplate.
The text was updated successfully, but these errors were encountered: