Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Error during install: read err { [Error: invalid block type] errno: -3, code: 'Z_DATA_ERROR' } #50

Closed
ferrylauda opened this issue Aug 10, 2015 · 3 comments

Comments

@ferrylauda
Copy link

That's the end of the install log:

npm info install [email protected]
npm info postinstall [email protected]

> [email protected] postinstall /Users/ferrylauda/.nvm/versions/node/v0.12.4/lib/node_modules/electron-prebuilt
> node install.js

read err { [Error: invalid block type] errno: -3, code: 'Z_DATA_ERROR' }
[email protected] /Users/ferrylauda/.nvm/versions/node/v0.12.4/lib/node_modules/electron-prebuilt
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
npm info ok 

Notice that the install ended successfully in spite of the error.

Running electron from command line fails with:

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: spawn /Users/ferrylauda/.nvm/versions/node/v0.12.4/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)
    at Function.Module.runMain (module.js:503:11)
    at startup (node.js:129:16)
    at node.js:814:3

Here are the vesions I'm using:

$ npm version
{ npm: '2.10.1',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.4',
  openssl: '1.0.1m',
  uv: '1.5.0',
  v8: '3.28.71.19',
  zlib: '1.2.8' }
@max-mapper
Copy link
Contributor

that usually means the zip file somehow got corrupted. can you delete it from ~/.electron (if it exists) and try again?

@ferrylauda
Copy link
Author

it works. thanks for your help

@mik01aj
Copy link

mik01aj commented Aug 10, 2015

Still, an error like this should be caught and the install should not continue in this case.

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

No branches or pull requests

3 participants