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.

Error: Failed to find Electron vv1.3.4

See original GitHub issue

Hello,

I’m using electron-packager to build my electron app. I used The CLI to build the application until now, without issues. Now I wanted to switch to the Programming API to make the build process easier to automate, however I’m having trouble with the version argument: If I supply “v1.3.4” as version property (which I think is the correct formatting), It begings building, but the throws:

Packaging app for platform win32 x64 using electron v1.3.4

Error: Failed to find Electron vv1.3.4 for win32-x64 at https://github.com/electron/electron/releases/download/vv1.3.4/electron-vv1.3.4-win32-x64.zip
    at Request.<anonymous> (C:\xampp\htdocs\bae\node_modules\nugget\index.js:170:61)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at Request.onRequestResponse (C:\xampp\htdocs\bae\node_modules\request\request.js:954:10)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:472:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:105:23)
    at TLSSocket.socketOnData (_http_client.js:361:20)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:177:18)
    at TLSSocket.Readable.push (_stream_readable.js:135:10)
    at TLSWrap.onread (net.js:542:20)

I saw that the version was malformed to vv1.3.4, which of course is not the right value. Then I assumed that I would need to omit the “v” for the property, which resulted in this error:

 Fatal error: Unable to parse version string

Now I assume that the formatting “v1.x.x” was correct, however still failed. Can someone help me with that?

The content of the js file:


"use strict";

const packager = require("electron-packager");
const packageJson = require("./package.json");


const options = {
    "name": packageJson.name,
    "app-version": packageJson.version,
    "build-version": packageJson.version,
    "version": "v1.3.4",
    "dir": "./app",
    "out": "./releases/",
    "arch": packageJson.build.arch,
    "platform": packageJson.build.platforms,
    "asar": false,
};

console.log(options);

packager(options, function(err, appPaths) {
    if (err) {
        throw err;
    } else {
        console.log(`Built ${packageJson.name}`);
    }
});


I enabled the DEBUG envoriment var for electron-packager and electron-download, the output stays the same

I’m using

  • Node 6.4
  • npm 3.10.3
  • electron-prebuilt 1.3.4
  • electron-packager 7.6.0

On Windows 10 64bit

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Aug 27, 2016

Per the API docs about the version option, you need to omit the v.

0reactions
FelixRillingcommented, Aug 28, 2016

Oh! That was the problem, I had “v1.7.2” as version key, I didnt know that the electron builder takes this version too! after switching to “1.7.2” It worked. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Failed to find Electron vv1.3.4 · Issue #473 - GitHub
Hello, I'm using electron-packager to build my electron app. I used The CLI to build the application until now, without issues.
Read more >
Building electron app on new m1 mac with ipfs fails - Help
I've tried looking into it. It seems to be failing because it's trying to grab Electron v1. 8.8 instead of the specified Electron...
Read more >
Electron issue with Mac M1 - Stack Overflow
Bought latest Mac M1.I'm trying to install modules for my project and got an error
Read more >
Changelog - Cypress Documentation
Component tests that fail now display a code frame of the source location of the error within the Cypress reporter. Addresses #21720. Bugfixes:...
Read more >
All the Electron Docs! | Electron
Returns String - A path to a special directory or file associated with name . On failure an Error is thrown. You can...
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