Comments (11)
updating electron-packager
worked for me
npm install electron-packager -g
from electron-prebuilt.
Getting a similar error while trying to install Electron 1.7.5, on Ubuntu 16.04.
Error: Generated checksum for "electron-v1.7.5-linux-x64.zip" did not match expected checksum.
at ChecksumMismatchError.ErrorWithFilename (/path/to/project/node_modules/sumchecker/build.js:41:124)
at new ChecksumMismatchError (/path/to/project/node_modules/sumchecker/build.js:56:133)
at Hash.<anonymous> (/path/to/project/node_modules/sumchecker/build.js:203:22)
at emitNone (events.js:105:13)
at Hash.emit (events.js:207:7)
at emitReadable_ (_stream_readable.js:516:10)
at emitReadable (_stream_readable.js:510:7)
at addChunk (_stream_readable.js:277:7)
at readableAddChunk (_stream_readable.js:253:11)
at Hash.Readable.push (_stream_readable.js:211:10)
from electron-prebuilt.
Hi @runrog, please don't comment "+1", if you have a similar problem and don't have additional details to add, please use 👍 emotion on OP's post. This will prevent constant notifications that repo's owners and participants receiving and reduce the number of overall comments so it will be easier to focus on important information.
from electron-prebuilt.
Rolling back to Node v6.9.2 with nvm
fixed this on Bitrise CI.
I tried Node v7.3.0 but ran into the same issue. I'm not sure if malept/sumchecker#5 is the fix but it's in sumchecker
2.0.2 and electron-downloader
is using sumchecker
2.0.1.
from electron-prebuilt.
For anyone still facing this issue, try this fix
from electron-prebuilt.
... But then I switched to node 6.12.0, and I could finally install it :/
from electron-prebuilt.
+1
from electron-prebuilt.
I can confirm the same issue as OP on node:alpine
FROM node:latest
ADD dist /srv/node/web/dist
ADD deployment /srv/node/web
WORKDIR web
RUN npm i --only=dev
ENV BUILD_DIR=dist
ENV PORT=8080
EXPOSE 8080
CMD ["node", "server.js"]
from electron-prebuilt.
We can fix this, but I want to first get a sense of users are still affected by it, as its an older version of Electron.
The electron-prebuilt repo is being retired and its code has been moved into the electron/electron repo. For the sake of historical transparency, we will leave GitHub Issues enabled on this repository, but if you are still affected by the issue reported here, please open a new issue on electron/electron repo and reference this issue from it so people can get the full context. The electron repository has a large and active contributor community, so your issue is more likely to get the attention it deserves there. Thanks!
from electron-prebuilt.
I'm still facing this issue,
npm install electron-packager -g
didn't help, resolutions
didn't help...
Trying to install [email protected]
:
C:\Projects\GIS>npm install
> [email protected] postinstall C:\Projects\GIS\node_modules\electron
> node install.js
Downloading electron-v2.0.5-win32-x64.zip
[============================================>] 100.0% of 50.7 MB (11.93 MB/s)
C:\Projects\GIS\node_modules\electron\install.js:47
throw err
^
Error
at ChecksumMismatchError.ErrorWithFilename (C:\Projects\GIS\node_modules\sumchecker\build.js:41:124)
at new ChecksumMismatchError (C:\Projects\GIS\node_modules\sumchecker\build.js:56:127)
at Hash.<anonymous> (C:\Projects\GIS\node_modules\sumchecker\build.js:196:22)
at Hash.emit (events.js:180:13)
at emitReadable_ (_stream_readable.js:520:10)
at emitReadable (_stream_readable.js:514:7)
at addChunk (_stream_readable.js:280:7)
at readableAddChunk (_stream_readable.js:256:11)
at Hash.Readable.push (_stream_readable.js:213:10)
at Hash.Transform.push (_stream_transform.js:146:32)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\i.tsvetkov\AppData\Roaming\npm-cache\_logs\2018-07-31T09_51_36_988Z-debug.log
from electron-prebuilt.
have the same issue with node 8, ubuntu 18
Error: Generated checksum for "electron-v2.0.9-linux-x64.zip" did not match expected checksum.
at ChecksumMismatchError.ErrorWithFilename (/usr/local/lib/node_modules/electron/node_modules/sumchecker/build.js:41:124)
at new ChecksumMismatchError (/usr/local/lib/node_modules/electron/node_modules/sumchecker/build.js:56:133)
at Hash. (/usr/local/lib/node_modules/electron/node_modules/sumchecker/build.js:203:22)
at emitNone (events.js:106:13)
at Hash.emit (events.js:208:7)
at emitReadable_ (_stream_readable.js:513:10)
at emitReadable (_stream_readable.js:507:7)
at addChunk (_stream_readable.js:274:7)
at readableAddChunk (_stream_readable.js:250:11)
at Hash.Readable.push (_stream_readable.js:208:10)
from electron-prebuilt.
Related Issues (20)
- OpenBSD as a supportet platform? HOT 2
- Unable to install Electron with the quick-start tutorial HOT 7
- "sudo npm install -g electron" fails HOT 1
- Electron not installing (Windows 10) HOT 2
- Got stuck after npm install -g HOT 1
- Error while installing npm in windows 10 HOT 1
- Mac: Failed at the [email protected] postinstall script 'node install.js'. HOT 4
- npm install hangs HOT 3
- Dependency to @types/node makes electron package incompatible with typescript projects not using commonjs HOT 11
- Can't install electron 1.7.1 locally using npm 5 HOT 10
- Install on Bash on Ubuntu on Windows (WSL) HOT 13
- Postinstall script failing HOT 22
- Prebuilt electron package for Ubuntu 10.04 32 bits HOT 1
- node (vs. nodejs) is required when installing electron HOT 5
- Can't install in Windows10 HOT 1
- Change electron binary path via environment variable? HOT 2
- Electron not installing on Mac Os High Sierra HOT 1
- npm ERR! [email protected] postinstall
- Error while installing electron on Mac
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-prebuilt.