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

Error: Generated checksum for "electron-v1.7.9-linux-arm.zip" did not match expected checksum. #222

Closed
erpalma opened this issue Oct 21, 2017 · 3 comments

Comments

@erpalma
Copy link

erpalma commented Oct 21, 2017

Description

When cross compiling for arm (arm-linux-gnueabihf) I get:

/root/tmp/cncjs/node_modules/electron/install.js:48
  throw err
  ^

Error: Generated checksum for "electron-v1.7.9-linux-arm.zip" did not match expected checksum.
    at ChecksumMismatchError.Error (native)
    at ChecksumMismatchError.ErrorWithFilename (/root/tmp/cncjs/node_modules/electron/node_modules/sumchecker/build.js:41:124)
    at new ChecksumMismatchError (/root/tmp/cncjs/node_modules/electron/node_modules/sumchecker/build.js:56:133)
    at Hash.<anonymous> (/root/tmp/cncjs/node_modules/electron/node_modules/sumchecker/build.js:203:22)
    at emitNone (events.js:86:13)
    at Hash.emit (events.js:185:7)
    at emitReadable_ (_stream_readable.js:432:10)
    at emitReadable (_stream_readable.js:426:7)
    at readableAddChunk (_stream_readable.js:187:13)
    at Hash.Readable.push (_stream_readable.js:134:10)

Versions

  • CNCjs: master
  • Node.js: 6.11
  • NPM: 5.5.1
@MitchBradley
Copy link
Contributor

I'm rather new to the Node.js/npm world, but this post seems relevant:

electron-userland/electron-prebuilt#264

Based on that, there may a version problem with the "sumchecker" package. You could try:

npm list sumchecker

to find out which version you currently have, then

npm install sumchecker@2.02

and then re-cross-compile. Or maybe

npm install sumchecker@2.01

Depending on how you are doing the build, you might need to add the '-g' flag to the npm commands above.

@erpalma
Copy link
Author

erpalma commented Oct 23, 2017

Nice, it worked!

Thanks

@gosongs
Copy link

gosongs commented Nov 15, 2017

@MitchBradley

it is npm install sumchecker@2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants