Skip to content

Another Mac OSX install fail #53

Closed

Description

@Grigore147

Hi,

There are already few MacOSX install issues, but i've created this issue just because of different error message.

So i'm getting this one:

> nodegit@0.0.72 install /CWD/node_modules/nodegit
> node install.js

[nodegit] Downloading libgit2 dependency.

/CWD/node_modules/nodegit/node_modules/adm-zip/headers/entryHeader.js:92
            throw Utils.Errors.INVALID_CEN;
                              ^
Invalid CEN header (bad signature)
npm ERR! nodegit@0.0.72 install: `node install.js`
npm ERR! `sh "-c" "node install.js"` failed with 1
npm ERR! 
npm ERR! Failed at the nodegit@0.0.72 install script.
npm ERR! This is most likely a problem with the nodegit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls nodegit
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 11.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "git://github.com/tbranyen/nodegit.git"
npm ERR! cwd /CWD
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /CWD/npm-debug.log
npm ERR! not ok code 0

I'm getting the same error for both npm install nodegit and npm install git://github.com/tbranyen/nodegit.git.

MacOSX v10.7, Node v0.8.17

Thanks.

Activity

  1. faceleg commented on Mar 17, 2013

    @faceleg
    Collaborator

    Confirming this is one of the many issue I'm trying to work out at the moment. As quickly as I can!

  2. faceleg commented on Mar 17, 2013

    @faceleg
    Collaborator

    (note to self): try this to download & unzip libgit2: http://stackoverflow.com/a/10391641/187954

  3. Grigore147 commented on Mar 17, 2013

    @Grigore147
    Author

    What i've seen in your code, you can try something like this:

    var request = require('request');
    var zlib    = require('zlib');
    var tar     = require('tar');
    
    var commit = 'b70bf922a1de35722904930c42467e95c889562f';
    var url = 'https://github.com/libgit2/libgit2/tarball/'+ commit;
    var path = __dirname + '/vendor/libgit2-' + commit;
    
    request({ url: url }).pipe(zlib.createUnzip()).pipe(tar.Extract({ path: path }))
    .on('end', function() {
      console.log('Done!');
    });
    

    This is a short code, you can add listeners for other events like error, data ...

  4. faceleg commented on Mar 18, 2013

    @faceleg
    Collaborator

    @Shogun147 thanks Shogun, that looks workable. Hopefully I get a chance to give it a try over the next few days! (Or you could submit a PR, hint hint? 👍 💯)

  5. faceleg commented on Mar 21, 2013

    @faceleg
    Collaborator

    Thanks again, I've implemented your solution and it works great (for me).

  6. Grigore147 commented on Mar 21, 2013

    @Grigore147
    Author

    @faceleg - yeah, well done, it works for me to, just had to install cmake and python2 deps for libgit.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions