Visitar URL original
ERR! Pre-built binaries not found for nodegit@0.22.2 and node@10.3.0 · Issue #1536 · nodegit/nodegit · GitHub
Skip to content

ERR! Pre-built binaries not found for nodegit@0.22.2 and node@10.3.0 #1536

Description

@BrunoQuaresma

I got this error when I tried to install using Ubuntu

npm install nodegit --save

> nodegit@0.22.2 install /home/bruno/workspace/git-consume/node_modules/nodegit
> node lifecycleScripts/preinstall && node lifecycleScripts/install

[nodegit] Running pre-install script
[nodegit] Configuring libssh2.
[nodegit] Running install script
node-pre-gyp
ERR! Tried to download(404): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.22.2-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for nodegit@0.22.2 and node@10.3.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp
ERR! Tried to download(undefined): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.22.2-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for nodegit@0.22.2 and node@10.3.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/home/bruno/workspace/git-consume/node_modules/nodegit/build'
make: Entering directory '/home/bruno/workspace/git-consume/node_modules/nodegit/build'
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/annotated_commit.o
  CC(target) Release/obj.target/libgit2/vendor/libgit2/src/annotated_commit.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/apply.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/apply.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr_file.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr_file.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attrcache.o
sed: can't read ./Release/.deps/Release/obj.target/libgit2/vendor/libgit2/src/attr.o.d.raw: No such file or directory
rm: cannot remove './Release/.deps/Release/obj.target/libgit2/vendor/libgit2/src/attr.o.d.raw': No such file or directory
make: *** [Release/obj.target/libgit2/vendor/libgit2/src/attr.o] Error 1
vendor/libgit2.target.mk:282: recipe for target 'Release/obj.target/libgit2/vendor/libgit2/src/attr.o' failed
make: Leaving directory '/home/bruno/workspace/git-consume/node_modules/nodegit/build'
gyp

ERR! build error
gyp
ERR! stack
Error: `make` failed with exit code: 2
gyp ERR! stack
at ChildProcess.onExit (/home/bruno/.nvm/versions/node/v10.3.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack
at ChildProcess.emit (events.js:182:13)
gyp ERR! stack
at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp
ERR! System Linux 4.15.0-30-generic
gyp
ERR! command "/home/bruno/.nvm/versions/node/v10.3.0/bin/node" "/home/bruno/.nvm/versions/node/v10.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release"
gyp ERR! cwd /home/bruno/workspace/git-consume/node_modules/nodegit
gyp ERR! node -v v10.3.0
gyp ERR! node-gyp -v
v3.7.0
gyp ERR! not ok

node-pre-gyp
ERR! build error
node-pre-gyp
ERR! stack Error: Failed to execute '/home/bruno/.nvm/versions/node/v10.3.0/bin/node /home/bruno/.nvm/versions/node/v10.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release' (1)
node-pre-gyp ERR!
stack     at ChildProcess.<anonymous> (/home/bruno/workspace/git-consume/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR!
stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR!
stack     at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp
ERR! System Linux 4.15.0-30-generic
node-pre-gyp ERR!
command "/home/bruno/.nvm/versions/node/v10.3.0/bin/node" "/home/bruno/workspace/git-consume/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/bruno/workspace/git-consume/node_modules/nodegit
node-pre-gyp ERR! node -v v10.3.0
node-pre-gyp ERR!
node-pre-gyp -v v0.6.39
node-pre-gyp ERR!
not ok
Failed to execute '/home/bruno/.nvm/versions/node/v10.3.0/bin/node /home/bruno/.nvm/versions/node/v10.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release' (1)
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blame_git.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blame.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blob.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/branch.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/buf_text.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/buffer.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/cache.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/checkout.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/cherrypick.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/clone.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/commit_list.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/commit.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config_cache.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config_file.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config_parse.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/crlf.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/streams/curl.o
../vendor/libgit2/src/streams/curl.c:12:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.
vendor/libgit2.target.mk:282: recipe for target 'Release/obj.target/libgit2/vendor/libgit2/src/streams/curl.o' failed
make: Leaving directory '/home/bruno/workspace/git-consume/node_modules/nodegit/build'
make: *** [Release/obj.target/libgit2/vendor/libgit2/src/streams/curl.o] Error 1
gyp

ERR! build error
gyp
ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/bruno/.nvm/versions/node/v10.3.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp
ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp
ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR!
System Linux 4.15.0-30-generic
gyp ERR! command "/home/bruno/.nvm/versions/node/v10.3.0/bin/node" "/home/bruno/.nvm/versions/node/v10.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/home/bruno/workspace/git-consume/node_modules/nodegit/build/Release"
gyp ERR! cwd /home/bruno/workspace/git-consume/node_modules/nodegit
gyp ERR! node -v v10.3.0
gyp ERR! node-gyp -v
v3.7.0
gyp ERR!
not ok
[nodegit] ERROR - Could not finish install
[nodegit] ERROR - finished with error code: 1
npm WARN git-consume@1.0.0 No description

Activity

  1. ylecuyer commented on Aug 17, 2018

    @ylecuyer
  2. Paimard commented on Aug 30, 2018

    @Paimard

    same problem

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! nodegit@0.22.2 install: node lifecycleScripts/preinstall && node lifecycleScripts/install
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the nodegit@0.22.2 install 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! /var/root/.npm/_logs/2018-08-30T19_48_27_915Z-debug.log

  3. jaywcjlove commented on Sep 3, 2018

    @jaywcjlove

    @ylecuyer same problem

    10.13.6

    node -v
    v8.11.4
    
    npm -v
    5.6.0
    sudo npm install nodegit --save
    
    npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
    
    > nodegit@0.22.2 install /Users/kenny/git/git-demo/node_modules/nodegit
    > node lifecycleScripts/preinstall && node lifecycleScripts/install
    
    [nodegit] Running pre-install script
    [nodegit] Configuring libssh2.
    { Error: Command failed: /Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/kenny/git/git-demo/node_modules/nodegit/vendor/openssl/openssl
    /Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
    Try `/Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    mkdir: /Users/kenny/git/git-demo/node_modules/nodegit/cg30831-1064: Permission denied
    mkdir: /Users/kenny/git/git-demo/node_modules/nodegit/cg-30831: Permission denied
    config.guess: cannot create a temporary directory in /Users/kenny/git/git-demo/node_modules/nodegit
    configure: error: cannot guess build type; you must specify one
    
        at ChildProcess.exithandler (child_process.js:275:12)
        at emitTwo (events.js:126:13)
        at ChildProcess.emit (events.js:214:7)
        at maybeClose (internal/child_process.js:925:16)
        at Socket.stream.socket.on (internal/child_process.js:346:11)
        at emitOne (events.js:116:13)
        at Socket.emit (events.js:211:7)
        at Pipe._handle.close [as _onclose] (net.js:557:12)
      killed: false,
      code: 1,
      signal: null,
      cmd: '/Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/kenny/git/git-demo/node_modules/nodegit/vendor/openssl/openssl' }
    /Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
    Try `/Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    mkdir: /Users/kenny/git/git-demo/node_modules/nodegit/cg30831-1064: Permission denied
    mkdir: /Users/kenny/git/git-demo/node_modules/nodegit/cg-30831: Permission denied
    config.guess: cannot create a temporary directory in /Users/kenny/git/git-demo/node_modules/nodegit
    configure: error: cannot guess build type; you must specify one
    
    [nodegit] ERROR - Could not finish preinstall
    { Error: Command failed: /Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/kenny/git/git-demo/node_modules/nodegit/vendor/openssl/openssl
    /Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
    Try `/Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    mkdir: /Users/kenny/git/git-demo/node_modules/nodegit/cg30831-1064: Permission denied
    mkdir: /Users/kenny/git/git-demo/node_modules/nodegit/cg-30831: Permission denied
    config.guess: cannot create a temporary directory in /Users/kenny/git/git-demo/node_modules/nodegit
    configure: error: cannot guess build type; you must specify one
    
        at ChildProcess.exithandler (child_process.js:275:12)
        at emitTwo (events.js:126:13)
        at ChildProcess.emit (events.js:214:7)
        at maybeClose (internal/child_process.js:925:16)
        at Socket.stream.socket.on (internal/child_process.js:346:11)
        at emitOne (events.js:116:13)
        at Socket.emit (events.js:211:7)
        at Pipe._handle.close [as _onclose] (net.js:557:12)
      killed: false,
      code: 1,
      signal: null,
      cmd: '/Users/kenny/git/git-demo/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/kenny/git/git-demo/node_modules/nodegit/vendor/openssl/openssl' }
    npm WARN gitke@1.0.0 No repository field.
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! nodegit@0.22.2 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the nodegit@0.22.2 install 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!     /Users/kenny/.npm/_logs/2018-09-03T11_30_02_152Z-debug.log
  4. jaywcjlove commented on Sep 3, 2018

    @jaywcjlove

    nailed it. It can be installed successfully through yarn.

    sudo yarn add nodegit
  5. maxkorp commented on Sep 4, 2018

    @maxkorp
    Collaborator

    Node 10 is currently not supported, but work is underway. See here: #1490

    This will be resolved when node 10 is supported

  6. jaywcjlove commented on Sep 5, 2018

    @jaywcjlove
    node -v
    v8.11.4
    

    I am getting an error in node.js v8.11.4 @maxkorp

  7. dvakatsiienko commented on Sep 21, 2018

    @dvakatsiienko

    same with node v8.12.0

  8. maxkorp commented on Sep 21, 2018

    @maxkorp
    Collaborator

    Thats a good enough reason for me!

  9. maxkorp commented on Sep 21, 2018

    @maxkorp
    Collaborator

    I'll look at this in a few hours 👍

  10. dvakatsiienko commented on Sep 21, 2018

    @dvakatsiienko

    thanx @maxkorp !

    just in case:
    it happens when → npm install
    but it is okay when → yarn add

    macOS 10.13.6 (with freshly installed sudo xcode-select --install)

  11. maxkorp commented on Sep 21, 2018

    @maxkorp
    Collaborator

    Can somebody who can repro the issue clone nodegit and run the following and give me the output?

    npm install node-pre-gyp
    npx node-pre-gyp reveal
    

    CC @dvakatsiienko @jaywcjlove

  12. maxkorp commented on Sep 21, 2018

    @maxkorp
    Collaborator

    Whhhooops seems like I might have found something
    Edit: Nope

  13. dvakatsiienko commented on Sep 22, 2018

    @dvakatsiienko

    @maxkorp on it

  14. 8 remaining items

  15. dvakatsiienko commented on Sep 26, 2018

    @dvakatsiienko

    @maxkorp
    I've installed clean macOS Sierra 10.13.6 and xcode-select --install on virtual machine with Node v8.12.0.
    Now I clearly see this problem when npm install nodegit:

    configure: error: cannot guess build type; you must specify one
    

    Then executed again:

    npm install node-pre-gyp
    npx node-pre-gyp reveal
    

    Which gave me the following:

    macos-10:nodegit test$ npx node-pre-gyp reveal
    node-pre-gyp info it worked if it ends with ok
    node-pre-gyp info using node-pre-gyp@0.11.0
    node-pre-gyp info using node@8.12.0 | darwin | x64
    {
      "name": "nodegit",
      "configuration": "Release",
      "module_name": "nodegit",
      "version": "0.22.2",
      "prerelease": "",
      "build": "",
      "major": 0,
      "minor": 22,
      "patch": 2,
      "runtime": "node",
      "node_abi": "node-v57",
      "node_abi_napi": "napi",
      "napi_version": "3",
      "napi_build_version": "",
      "node_napi_label": "node-v57",
      "target": "",
      "platform": "darwin",
      "target_platform": "darwin",
      "arch": "x64",
      "target_arch": "x64",
      "libc": "unknown",
      "module_main": "dist/nodegit.js",
      "toolset": "",
      "host": "https://axonodegit.s3.amazonaws.com/nodegit/nodegit/",
      "module_path": "/Users/test/experiments/nodegit/build/Release",
      "module": "/Users/test/experiments/nodegit/build/Release/nodegit.node",
      "remote_path": "",
      "package_name": "nodegit-v0.22.2-node-v57-darwin-x64.tar.gz",
      "staged_tarball": "build/stage/nodegit-v0.22.2-node-v57-darwin-x64.tar.gz",
      "hosted_path": "https://axonodegit.s3.amazonaws.com/nodegit/nodegit/",
      "hosted_tarball": "https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.22.2-node-v57-darwin-x64.tar.gz"
    }
    node-pre-gyp info ok 
    

    P.S.: I'm not sure if it is the case but tried to brew install libgcrypt which fixes
    No crypto library found! error, but it did not fixed an issue with
    configure: error: cannot guess build type; you must specify one.

  16. dvakatsiienko commented on Sep 26, 2018

    @dvakatsiienko

    @maxkorp Here is the output of npm install nodegit --verbose in a clean directory on the same virtual machine:

    macos-10:nodegit-test test$ sudo npm install nodegit --verbose
    
    npm info it worked if it ends with ok
    npm verb cli [ '/usr/local/bin/node',
    npm verb cli   '/usr/local/bin/npm',
    npm verb cli   'install',
    npm verb cli   'nodegit',
    npm verb cli   '--verbose' ]
    npm info using npm@6.4.1
    npm info using node@v8.12.0
    npm verb npm-session 70d4f07fa40f7434
    npm http fetch GET 304 https://registry.npmjs.org/nodegit 159ms (from cache)
    npm timing stage:loadCurrentTree Completed in 388ms
    npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
    npm timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
    npm http fetch GET 200 https://registry.npmjs.org/lodash 36ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/nan 40ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/fs-extra 53ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/node-gyp 71ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/node-pre-gyp 76ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/promisify-node 886ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/jsonfile 17ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/klaw 17ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/rimraf 15ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/path-is-absolute 17ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/graceful-fs 65ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/glob 5ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/fs.realpath 11ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/inflight 13ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/inherits 13ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/once 14ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/minimatch 16ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/wrappy 5ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/brace-expansion 4ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/balanced-match 9ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/concat-map 9ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/mkdirp 52ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/which 54ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/fstream 81ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/osenv 80ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/nopt 86ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/tar 117ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/semver 124ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/npmlog 129ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/request 136ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/minimist 5ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/abbrev 6ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/set-blocking 13ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/gauge 43ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/console-control-strings 53ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/are-we-there-yet 53ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/delegates 6ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/readable-stream 6ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/core-util-is 39ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/process-nextick-args 39ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/isarray 40ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/string_decoder 42ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 43ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 46ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/aproba 61ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/signal-exit 60ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/has-unicode 108ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/string-width 108ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/strip-ansi 109ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/object-assign 115ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/wide-align 113ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/code-point-at 7ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/is-fullwidth-code-point 47ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/number-is-nan 19ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 4ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/os-homedir 7ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/os-tmpdir 8ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/aws4 21ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/caseless 22ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/combined-stream 24ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/extend 25ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/forever-agent 25ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/is-typedarray 25ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/isstream 35ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/json-stringify-safe 36ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/mime-types 39ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 20ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/aws-sign2 120ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/uuid 23ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/form-data 125ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/http-signature 124ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/har-validator 128ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/performance-now 110ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/oauth-sign 111ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/qs 111ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/tough-cookie 75ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/delayed-stream 4ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/asynckit 9ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/mime-db 7ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/har-schema 33ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/ajv 44ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/fast-deep-equal 8ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/fast-json-stable-stringify 8ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/json-schema-traverse 9ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/co 10ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/sshpk 52ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/jsprim 75ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/assert-plus 88ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/json-schema 5ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/extsprintf 5ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/verror 7ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/dashdash 18ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/asn1 19ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 19ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/getpass 20ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/jsbn 19ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/tweetnacl 20ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/bcrypt-pbkdf 21ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/ecc-jsbn 22ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/psl 11ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/punycode 12ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/block-stream 34ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/isexe 14ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/rc 13ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/hawk 56ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/detect-libc 57ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/tar-pack 62ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/cryptiles 66ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/hoek 71ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/boom 75ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/sntp 74ms (from cache)
    npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
    npm http fetch GET 200 https://registry.npmjs.org/deep-extend 9ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 9ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/ini 24ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/stringstream 39ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/json-stable-stringify 22ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/jsonify 5ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/debug 8ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/uid-number 24ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/fstream-ignore 34ms (from cache)
    npm http fetch GET 200 https://registry.npmjs.org/ms 16ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/nodegit-promise 835ms (from cache)
    npm http fetch GET 304 https://registry.npmjs.org/asap 21ms (from cache)
    npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 3432ms
    npm timing stage:loadIdealTree Completed in 3503ms
    npm timing stage:generateActionsToTake Completed in 34ms
    npm verb correctMkdir /Users/test/.npm/_locks correctMkdir not in flight; initializing
    npm timing audit compress Completed in 33ms
    npm info audit Submitting payload of 8099bytes
    npm verb lock using /Users/test/.npm/_locks/staging-44cd524382b82079.lock for /Users/test/nodegit-test/node_modules/.staging
    npm timing audit submit Completed in 1270ms
    npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 1271ms
    npm timing audit body Completed in 3ms
    npm timing action:extract Completed in 12583ms
    npm timing action:finalize Completed in 242ms
    npm timing action:refresh-package-json Completed in 636ms
    npm info lifecycle abbrev@1.1.1~preinstall: abbrev@1.1.1
    npm info lifecycle ansi-regex@2.1.1~preinstall: ansi-regex@2.1.1
    npm info lifecycle aproba@1.2.0~preinstall: aproba@1.2.0
    npm info lifecycle asap@2.0.6~preinstall: asap@2.0.6
    npm info lifecycle assert-plus@1.0.0~preinstall: assert-plus@1.0.0
    npm info lifecycle asynckit@0.4.0~preinstall: asynckit@0.4.0
    npm info lifecycle aws-sign2@0.7.0~preinstall: aws-sign2@0.7.0
    npm info lifecycle aws4@1.8.0~preinstall: aws4@1.8.0
    npm info lifecycle balanced-match@1.0.0~preinstall: balanced-match@1.0.0
    npm info lifecycle caseless@0.12.0~preinstall: caseless@0.12.0
    npm info lifecycle co@4.6.0~preinstall: co@4.6.0
    npm info lifecycle code-point-at@1.1.0~preinstall: code-point-at@1.1.0
    npm info lifecycle concat-map@0.0.1~preinstall: concat-map@0.0.1
    npm info lifecycle brace-expansion@1.1.11~preinstall: brace-expansion@1.1.11
    npm info lifecycle console-control-strings@1.1.0~preinstall: console-control-strings@1.1.0
    npm info lifecycle core-util-is@1.0.2~preinstall: core-util-is@1.0.2
    npm info lifecycle dashdash@1.14.1~preinstall: dashdash@1.14.1
    npm info lifecycle deep-extend@0.6.0~preinstall: deep-extend@0.6.0
    npm info lifecycle delayed-stream@1.0.0~preinstall: delayed-stream@1.0.0
    npm info lifecycle combined-stream@1.0.7~preinstall: combined-stream@1.0.7
    npm info lifecycle delegates@1.0.0~preinstall: delegates@1.0.0
    npm info lifecycle detect-libc@1.0.3~preinstall: detect-libc@1.0.3
    npm info lifecycle extend@3.0.2~preinstall: extend@3.0.2
    npm info lifecycle extsprintf@1.3.0~preinstall: extsprintf@1.3.0
    npm info lifecycle fast-deep-equal@1.1.0~preinstall: fast-deep-equal@1.1.0
    npm info lifecycle fast-json-stable-stringify@2.0.0~preinstall: fast-json-stable-stringify@2.0.0
    npm info lifecycle forever-agent@0.6.1~preinstall: forever-agent@0.6.1
    npm info lifecycle combined-stream@1.0.6~preinstall: combined-stream@1.0.6
    npm info lifecycle fs.realpath@1.0.0~preinstall: fs.realpath@1.0.0
    npm info lifecycle getpass@0.1.7~preinstall: getpass@0.1.7
    npm info lifecycle graceful-fs@4.1.11~preinstall: graceful-fs@4.1.11
    npm info lifecycle har-schema@2.0.0~preinstall: har-schema@2.0.0
    npm info lifecycle has-unicode@2.0.1~preinstall: has-unicode@2.0.1
    npm info lifecycle hoek@2.16.3~preinstall: hoek@2.16.3
    npm info lifecycle boom@2.10.1~preinstall: boom@2.10.1
    npm info lifecycle cryptiles@2.0.5~preinstall: cryptiles@2.0.5
    npm info lifecycle inherits@2.0.3~preinstall: inherits@2.0.3
    npm info lifecycle block-stream@0.0.9~preinstall: block-stream@0.0.9
    npm info lifecycle ini@1.3.5~preinstall: ini@1.3.5
    npm info lifecycle is-typedarray@1.0.0~preinstall: is-typedarray@1.0.0
    npm info lifecycle isarray@1.0.0~preinstall: isarray@1.0.0
    npm info lifecycle isexe@2.0.0~preinstall: isexe@2.0.0
    npm info lifecycle isstream@0.1.2~preinstall: isstream@0.1.2
    npm info lifecycle jsbn@0.1.1~preinstall: jsbn@0.1.1
    npm info lifecycle json-schema@0.2.3~preinstall: json-schema@0.2.3
    npm info lifecycle json-schema-traverse@0.3.1~preinstall: json-schema-traverse@0.3.1
    npm info lifecycle ajv@5.5.2~preinstall: ajv@5.5.2
    npm info lifecycle har-validator@5.1.0~preinstall: har-validator@5.1.0
    npm info lifecycle json-stringify-safe@5.0.1~preinstall: json-stringify-safe@5.0.1
    npm info lifecycle jsonfile@2.4.0~preinstall: jsonfile@2.4.0
    npm info lifecycle nodegit@0.22.2~preinstall: nodegit@0.22.2
    npm info lifecycle promisify-node@0.3.0~preinstall: promisify-node@0.3.0
    npm info lifecycle node-pre-gyp@0.6.39~preinstall: node-pre-gyp@0.6.39
    npm info lifecycle node-gyp@3.8.0~preinstall: node-gyp@3.8.0
    npm info lifecycle nan@2.11.0~preinstall: nan@2.11.0
    npm info lifecycle lodash@4.17.11~preinstall: lodash@4.17.11
    npm info lifecycle fs-extra@0.27.0~preinstall: fs-extra@0.27.0
    npm info lifecycle tar-pack@3.4.1~preinstall: tar-pack@3.4.1
    npm info lifecycle tar@2.2.1~preinstall: tar@2.2.1
    npm info lifecycle fstream-ignore@1.0.5~preinstall: fstream-ignore@1.0.5
    npm info lifecycle fstream@1.0.11~preinstall: fstream@1.0.11
    npm info lifecycle rimraf@2.6.2~preinstall: rimraf@2.6.2
    npm info lifecycle glob@7.1.3~preinstall: glob@7.1.3
    npm info lifecycle inflight@1.0.6~preinstall: inflight@1.0.6
    npm info lifecycle once@1.4.0~preinstall: once@1.4.0
    npm info lifecycle wrappy@1.0.2~preinstall: wrappy@1.0.2
    npm info lifecycle npmlog@4.1.2~preinstall: npmlog@4.1.2
    npm info lifecycle gauge@2.7.4~preinstall: gauge@2.7.4
    npm info lifecycle wide-align@1.1.3~preinstall: wide-align@1.1.3
    npm info lifecycle which@1.3.1~preinstall: which@1.3.1
    npm info lifecycle request@2.81.0~preinstall: request@2.81.0
    npm info lifecycle http-signature@1.1.1~preinstall: http-signature@1.1.1
    npm info lifecycle request@2.88.0~preinstall: request@2.88.0
    npm info lifecycle http-signature@1.2.0~preinstall: http-signature@1.2.0
    npm info lifecycle jsprim@1.4.1~preinstall: jsprim@1.4.1
    npm info lifecycle verror@1.10.0~preinstall: verror@1.10.0
    npm info lifecycle uuid@3.3.2~preinstall: uuid@3.3.2
    npm info lifecycle are-we-there-yet@1.1.5~preinstall: are-we-there-yet@1.1.5
    npm info lifecycle readable-stream@2.3.6~preinstall: readable-stream@2.3.6
    npm info lifecycle util-deprecate@1.0.2~preinstall: util-deprecate@1.0.2
    npm info lifecycle uid-number@0.0.6~preinstall: uid-number@0.0.6
    npm info lifecycle sshpk@1.14.2~preinstall: sshpk@1.14.2
    npm info lifecycle bcrypt-pbkdf@1.0.2~preinstall: bcrypt-pbkdf@1.0.2
    npm info lifecycle tweetnacl@0.14.5~preinstall: tweetnacl@0.14.5
    npm info lifecycle tunnel-agent@0.6.0~preinstall: tunnel-agent@0.6.0
    npm info lifecycle tough-cookie@2.4.3~preinstall: tough-cookie@2.4.3
    npm info lifecycle rc@1.2.8~preinstall: rc@1.2.8
    npm info lifecycle strip-json-comments@2.0.1~preinstall: strip-json-comments@2.0.1
    npm info lifecycle string-width@1.0.2~preinstall: string-width@1.0.2
    npm info lifecycle strip-ansi@3.0.1~preinstall: strip-ansi@3.0.1
    npm info lifecycle stringstream@0.0.6~preinstall: stringstream@0.0.6
    npm info lifecycle string_decoder@1.1.1~preinstall: string_decoder@1.1.1
    npm info lifecycle hawk@3.1.3~preinstall: hawk@3.1.3
    npm info lifecycle sntp@1.0.9~preinstall: sntp@1.0.9
    npm info lifecycle signal-exit@3.0.2~preinstall: signal-exit@3.0.2
    npm info lifecycle set-blocking@2.0.0~preinstall: set-blocking@2.0.0
    npm info lifecycle semver@5.3.0~preinstall: semver@5.3.0
    npm info lifecycle ecc-jsbn@0.1.2~preinstall: ecc-jsbn@0.1.2
    npm info lifecycle asn1@0.2.4~preinstall: asn1@0.2.4
    npm info lifecycle safer-buffer@2.1.2~preinstall: safer-buffer@2.1.2
    npm info lifecycle safe-buffer@5.1.2~preinstall: safe-buffer@5.1.2
    npm info lifecycle minimist@1.2.0~preinstall: minimist@1.2.0
    npm info lifecycle qs@6.5.2~preinstall: qs@6.5.2
    npm info lifecycle tough-cookie@2.3.4~preinstall: tough-cookie@2.3.4
    npm info lifecycle punycode@1.4.1~preinstall: punycode@1.4.1
    npm info lifecycle psl@1.1.29~preinstall: psl@1.1.29
    npm info lifecycle process-nextick-args@2.0.0~preinstall: process-nextick-args@2.0.0
    npm info lifecycle performance-now@2.1.0~preinstall: performance-now@2.1.0
    npm info lifecycle path-is-absolute@1.0.1~preinstall: path-is-absolute@1.0.1
    npm info lifecycle nopt@4.0.1~preinstall: nopt@4.0.1
    npm info lifecycle osenv@0.1.5~preinstall: osenv@0.1.5
    npm info lifecycle os-tmpdir@1.0.2~preinstall: os-tmpdir@1.0.2
    npm info lifecycle os-homedir@1.0.2~preinstall: os-homedir@1.0.2
    npm info lifecycle object-assign@4.1.1~preinstall: object-assign@4.1.1
    npm info lifecycle oauth-sign@0.9.0~preinstall: oauth-sign@0.9.0
    npm info lifecycle is-fullwidth-code-point@1.0.0~preinstall: is-fullwidth-code-point@1.0.0
    npm info lifecycle number-is-nan@1.0.1~preinstall: number-is-nan@1.0.1
    npm info lifecycle nopt@3.0.6~preinstall: nopt@3.0.6
    npm info lifecycle nodegit-promise@4.0.0~preinstall: nodegit-promise@4.0.0
    npm info lifecycle qs@6.4.0~preinstall: qs@6.4.0
    npm info lifecycle performance-now@0.2.0~preinstall: performance-now@0.2.0
    npm info lifecycle oauth-sign@0.8.2~preinstall: oauth-sign@0.8.2
    npm info lifecycle har-validator@4.2.1~preinstall: har-validator@4.2.1
    npm info lifecycle har-schema@1.0.5~preinstall: har-schema@1.0.5
    npm info lifecycle form-data@2.1.4~preinstall: form-data@2.1.4
    npm info lifecycle aws-sign2@0.6.0~preinstall: aws-sign2@0.6.0
    npm info lifecycle assert-plus@0.2.0~preinstall: assert-plus@0.2.0
    npm info lifecycle ajv@4.11.8~preinstall: ajv@4.11.8
    npm info lifecycle debug@2.6.9~preinstall: debug@2.6.9
    npm info lifecycle ms@2.0.0~preinstall: ms@2.0.0
    npm info lifecycle mkdirp@0.5.1~preinstall: mkdirp@0.5.1
    npm info lifecycle minimist@0.0.8~preinstall: minimist@0.0.8
    npm info lifecycle minimatch@3.0.4~preinstall: minimatch@3.0.4
    npm info lifecycle form-data@2.3.2~preinstall: form-data@2.3.2
    npm info lifecycle mime-types@2.1.20~preinstall: mime-types@2.1.20
    npm info lifecycle mime-db@1.36.0~preinstall: mime-db@1.36.0
    npm info lifecycle klaw@1.3.1~preinstall: klaw@1.3.1
    npm info lifecycle json-stable-stringify@1.0.1~preinstall: json-stable-stringify@1.0.1
    npm info lifecycle jsonify@0.0.0~preinstall: jsonify@0.0.0
    npm timing action:preinstall Completed in 194ms
    npm info linkStuff abbrev@1.1.1
    npm info linkStuff ansi-regex@2.1.1
    npm info linkStuff aproba@1.2.0
    npm info linkStuff asap@2.0.6
    npm info linkStuff assert-plus@1.0.0
    npm info linkStuff asynckit@0.4.0
    npm info linkStuff aws-sign2@0.7.0
    npm info linkStuff aws4@1.8.0
    npm info linkStuff balanced-match@1.0.0
    npm info linkStuff caseless@0.12.0
    npm info linkStuff co@4.6.0
    npm info linkStuff code-point-at@1.1.0
    npm info linkStuff concat-map@0.0.1
    npm info linkStuff brace-expansion@1.1.11
    npm info linkStuff console-control-strings@1.1.0
    npm info linkStuff core-util-is@1.0.2
    npm info linkStuff dashdash@1.14.1
    npm info linkStuff deep-extend@0.6.0
    npm info linkStuff delayed-stream@1.0.0
    npm info linkStuff combined-stream@1.0.7
    npm info linkStuff delegates@1.0.0
    npm info linkStuff detect-libc@1.0.3
    npm verb linkBins [ { 'detect-libc': './bin/detect-libc.js' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff extend@3.0.2
    npm info linkStuff extsprintf@1.3.0
    npm info linkStuff fast-deep-equal@1.1.0
    npm info linkStuff fast-json-stable-stringify@2.0.0
    npm info linkStuff forever-agent@0.6.1
    npm info linkStuff combined-stream@1.0.6
    npm info linkStuff fs.realpath@1.0.0
    npm info linkStuff getpass@0.1.7
    npm info linkStuff graceful-fs@4.1.11
    npm info linkStuff har-schema@2.0.0
    npm info linkStuff has-unicode@2.0.1
    npm info linkStuff hoek@2.16.3
    npm info linkStuff boom@2.10.1
    npm info linkStuff cryptiles@2.0.5
    npm info linkStuff inherits@2.0.3
    npm info linkStuff block-stream@0.0.9
    npm info linkStuff ini@1.3.5
    npm info linkStuff is-typedarray@1.0.0
    npm info linkStuff isarray@1.0.0
    npm info linkStuff isexe@2.0.0
    npm info linkStuff isstream@0.1.2
    npm info linkStuff jsbn@0.1.1
    npm info linkStuff json-schema@0.2.3
    npm info linkStuff json-schema-traverse@0.3.1
    npm info linkStuff ajv@5.5.2
    npm info linkStuff har-validator@5.1.0
    npm info linkStuff json-stringify-safe@5.0.1
    npm info linkStuff jsonfile@2.4.0
    npm info linkStuff jsonify@0.0.0
    npm info linkStuff json-stable-stringify@1.0.1
    npm info linkStuff klaw@1.3.1
    npm info linkStuff mime-db@1.36.0
    npm info linkStuff mime-types@2.1.20
    npm info linkStuff form-data@2.3.2
    npm info linkStuff minimatch@3.0.4
    npm info linkStuff minimist@0.0.8
    npm info linkStuff mkdirp@0.5.1
    npm verb linkBins [ { mkdirp: 'bin/cmd.js' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff ms@2.0.0
    npm info linkStuff debug@2.6.9
    npm info linkStuff ajv@4.11.8
    npm info linkStuff assert-plus@0.2.0
    npm info linkStuff aws-sign2@0.6.0
    npm info linkStuff form-data@2.1.4
    npm info linkStuff har-schema@1.0.5
    npm info linkStuff har-validator@4.2.1
    npm info linkStuff oauth-sign@0.8.2
    npm info linkStuff performance-now@0.2.0
    npm info linkStuff qs@6.4.0
    npm info linkStuff nodegit-promise@4.0.0
    npm info linkStuff nopt@3.0.6
    npm verb linkBins [ { nopt: './bin/nopt.js' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff number-is-nan@1.0.1
    npm info linkStuff is-fullwidth-code-point@1.0.0
    npm info linkStuff oauth-sign@0.9.0
    npm info linkStuff object-assign@4.1.1
    npm info linkStuff os-homedir@1.0.2
    npm info linkStuff os-tmpdir@1.0.2
    npm info linkStuff osenv@0.1.5
    npm info linkStuff nopt@4.0.1
    npm verb linkBins [ { nopt: './bin/nopt.js' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/node-pre-gyp/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff path-is-absolute@1.0.1
    npm info linkStuff performance-now@2.1.0
    npm info linkStuff process-nextick-args@2.0.0
    npm info linkStuff psl@1.1.29
    npm info linkStuff punycode@1.4.1
    npm info linkStuff tough-cookie@2.3.4
    npm info linkStuff qs@6.5.2
    npm info linkStuff minimist@1.2.0
    npm info linkStuff safe-buffer@5.1.2
    npm info linkStuff safer-buffer@2.1.2
    npm info linkStuff asn1@0.2.4
    npm info linkStuff ecc-jsbn@0.1.2
    npm info linkStuff semver@5.3.0
    npm verb linkBins [ { semver: './bin/semver' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff set-blocking@2.0.0
    npm info linkStuff signal-exit@3.0.2
    npm info linkStuff sntp@1.0.9
    npm info linkStuff hawk@3.1.3
    npm info linkStuff string_decoder@1.1.1
    npm info linkStuff stringstream@0.0.6
    npm info linkStuff strip-ansi@3.0.1
    npm info linkStuff string-width@1.0.2
    npm info linkStuff strip-json-comments@2.0.1
    npm info linkStuff rc@1.2.8
    npm verb linkBins [ { rc: './cli.js' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff tough-cookie@2.4.3
    npm info linkStuff tunnel-agent@0.6.0
    npm info linkStuff tweetnacl@0.14.5
    npm info linkStuff bcrypt-pbkdf@1.0.2
    npm info linkStuff sshpk@1.14.2
    npm verb linkBins [ { 'sshpk-conv': 'bin/sshpk-conv',
    npm verb linkBins     'sshpk-sign': 'bin/sshpk-sign',
    npm verb linkBins     'sshpk-verify': 'bin/sshpk-verify' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff uid-number@0.0.6
    npm info linkStuff util-deprecate@1.0.2
    npm info linkStuff readable-stream@2.3.6
    npm info linkStuff are-we-there-yet@1.1.5
    npm info linkStuff uuid@3.3.2
    npm verb linkBins [ { uuid: './bin/uuid' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff verror@1.10.0
    npm info linkStuff jsprim@1.4.1
    npm info linkStuff http-signature@1.2.0
    npm info linkStuff request@2.88.0
    npm info linkStuff http-signature@1.1.1
    npm info linkStuff request@2.81.0
    npm info linkStuff which@1.3.1
    npm verb linkBins [ { which: './bin/which' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff wide-align@1.1.3
    npm info linkStuff gauge@2.7.4
    npm info linkStuff npmlog@4.1.2
    npm info linkStuff wrappy@1.0.2
    npm info linkStuff once@1.4.0
    npm info linkStuff inflight@1.0.6
    npm info linkStuff glob@7.1.3
    npm info linkStuff rimraf@2.6.2
    npm verb linkBins [ { rimraf: './bin.js' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff fstream@1.0.11
    npm info linkStuff fstream-ignore@1.0.5
    npm info linkStuff tar@2.2.1
    npm info linkStuff tar-pack@3.4.1
    npm info linkStuff fs-extra@0.27.0
    npm info linkStuff lodash@4.17.11
    npm info linkStuff nan@2.11.0
    npm info linkStuff node-gyp@3.8.0
    npm verb linkBins [ { 'node-gyp': './bin/node-gyp.js' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff node-pre-gyp@0.6.39
    npm verb linkBins [ { 'node-pre-gyp': './bin/node-pre-gyp' },
    npm verb linkBins   '/Users/test/nodegit-test/node_modules/.bin',
    npm verb linkBins   false ]
    npm info linkStuff promisify-node@0.3.0
    npm info linkStuff nodegit@0.22.2
    npm timing action:build Completed in 163ms
    npm info lifecycle abbrev@1.1.1~install: abbrev@1.1.1
    npm info lifecycle ansi-regex@2.1.1~install: ansi-regex@2.1.1
    npm info lifecycle aproba@1.2.0~install: aproba@1.2.0
    npm info lifecycle asap@2.0.6~install: asap@2.0.6
    npm info lifecycle assert-plus@1.0.0~install: assert-plus@1.0.0
    npm info lifecycle asynckit@0.4.0~install: asynckit@0.4.0
    npm info lifecycle aws-sign2@0.7.0~install: aws-sign2@0.7.0
    npm info lifecycle aws4@1.8.0~install: aws4@1.8.0
    npm info lifecycle balanced-match@1.0.0~install: balanced-match@1.0.0
    npm info lifecycle caseless@0.12.0~install: caseless@0.12.0
    npm info lifecycle co@4.6.0~install: co@4.6.0
    npm info lifecycle code-point-at@1.1.0~install: code-point-at@1.1.0
    npm info lifecycle concat-map@0.0.1~install: concat-map@0.0.1
    npm info lifecycle brace-expansion@1.1.11~install: brace-expansion@1.1.11
    npm info lifecycle console-control-strings@1.1.0~install: console-control-strings@1.1.0
    npm info lifecycle core-util-is@1.0.2~install: core-util-is@1.0.2
    npm info lifecycle dashdash@1.14.1~install: dashdash@1.14.1
    npm info lifecycle deep-extend@0.6.0~install: deep-extend@0.6.0
    npm info lifecycle delayed-stream@1.0.0~install: delayed-stream@1.0.0
    npm info lifecycle combined-stream@1.0.7~install: combined-stream@1.0.7
    npm info lifecycle delegates@1.0.0~install: delegates@1.0.0
    npm info lifecycle detect-libc@1.0.3~install: detect-libc@1.0.3
    npm info lifecycle extend@3.0.2~install: extend@3.0.2
    npm info lifecycle extsprintf@1.3.0~install: extsprintf@1.3.0
    npm info lifecycle fast-deep-equal@1.1.0~install: fast-deep-equal@1.1.0
    npm info lifecycle fast-json-stable-stringify@2.0.0~install: fast-json-stable-stringify@2.0.0
    npm info lifecycle forever-agent@0.6.1~install: forever-agent@0.6.1
    npm info lifecycle combined-stream@1.0.6~install: combined-stream@1.0.6
    npm info lifecycle fs.realpath@1.0.0~install: fs.realpath@1.0.0
    npm info lifecycle getpass@0.1.7~install: getpass@0.1.7
    npm info lifecycle graceful-fs@4.1.11~install: graceful-fs@4.1.11
    npm info lifecycle har-schema@2.0.0~install: har-schema@2.0.0
    npm info lifecycle has-unicode@2.0.1~install: has-unicode@2.0.1
    npm info lifecycle hoek@2.16.3~install: hoek@2.16.3
    npm info lifecycle boom@2.10.1~install: boom@2.10.1
    npm info lifecycle cryptiles@2.0.5~install: cryptiles@2.0.5
    npm info lifecycle inherits@2.0.3~install: inherits@2.0.3
    npm info lifecycle block-stream@0.0.9~install: block-stream@0.0.9
    npm info lifecycle ini@1.3.5~install: ini@1.3.5
    npm info lifecycle is-typedarray@1.0.0~install: is-typedarray@1.0.0
    npm info lifecycle isarray@1.0.0~install: isarray@1.0.0
    npm info lifecycle isexe@2.0.0~install: isexe@2.0.0
    npm info lifecycle isstream@0.1.2~install: isstream@0.1.2
    npm info lifecycle jsbn@0.1.1~install: jsbn@0.1.1
    npm info lifecycle json-schema@0.2.3~install: json-schema@0.2.3
    npm info lifecycle json-schema-traverse@0.3.1~install: json-schema-traverse@0.3.1
    npm info lifecycle ajv@5.5.2~install: ajv@5.5.2
    npm info lifecycle har-validator@5.1.0~install: har-validator@5.1.0
    npm info lifecycle json-stringify-safe@5.0.1~install: json-stringify-safe@5.0.1
    npm info lifecycle jsonfile@2.4.0~install: jsonfile@2.4.0
    npm info lifecycle jsonify@0.0.0~install: jsonify@0.0.0
    npm info lifecycle json-stable-stringify@1.0.1~install: json-stable-stringify@1.0.1
    npm info lifecycle klaw@1.3.1~install: klaw@1.3.1
    npm info lifecycle mime-db@1.36.0~install: mime-db@1.36.0
    npm info lifecycle mime-types@2.1.20~install: mime-types@2.1.20
    npm info lifecycle form-data@2.3.2~install: form-data@2.3.2
    npm info lifecycle minimatch@3.0.4~install: minimatch@3.0.4
    npm info lifecycle minimist@0.0.8~install: minimist@0.0.8
    npm info lifecycle mkdirp@0.5.1~install: mkdirp@0.5.1
    npm info lifecycle ms@2.0.0~install: ms@2.0.0
    npm info lifecycle debug@2.6.9~install: debug@2.6.9
    npm info lifecycle ajv@4.11.8~install: ajv@4.11.8
    npm info lifecycle assert-plus@0.2.0~install: assert-plus@0.2.0
    npm info lifecycle aws-sign2@0.6.0~install: aws-sign2@0.6.0
    npm info lifecycle form-data@2.1.4~install: form-data@2.1.4
    npm info lifecycle har-schema@1.0.5~install: har-schema@1.0.5
    npm info lifecycle har-validator@4.2.1~install: har-validator@4.2.1
    npm info lifecycle oauth-sign@0.8.2~install: oauth-sign@0.8.2
    npm info lifecycle performance-now@0.2.0~install: performance-now@0.2.0
    npm info lifecycle qs@6.4.0~install: qs@6.4.0
    npm info lifecycle nodegit-promise@4.0.0~install: nodegit-promise@4.0.0
    npm info lifecycle nopt@3.0.6~install: nopt@3.0.6
    npm info lifecycle number-is-nan@1.0.1~install: number-is-nan@1.0.1
    npm info lifecycle is-fullwidth-code-point@1.0.0~install: is-fullwidth-code-point@1.0.0
    npm info lifecycle oauth-sign@0.9.0~install: oauth-sign@0.9.0
    npm info lifecycle object-assign@4.1.1~install: object-assign@4.1.1
    npm info lifecycle os-homedir@1.0.2~install: os-homedir@1.0.2
    npm info lifecycle os-tmpdir@1.0.2~install: os-tmpdir@1.0.2
    npm info lifecycle osenv@0.1.5~install: osenv@0.1.5
    npm info lifecycle nopt@4.0.1~install: nopt@4.0.1
    npm info lifecycle path-is-absolute@1.0.1~install: path-is-absolute@1.0.1
    npm info lifecycle performance-now@2.1.0~install: performance-now@2.1.0
    npm info lifecycle process-nextick-args@2.0.0~install: process-nextick-args@2.0.0
    npm info lifecycle psl@1.1.29~install: psl@1.1.29
    npm info lifecycle punycode@1.4.1~install: punycode@1.4.1
    npm info lifecycle tough-cookie@2.3.4~install: tough-cookie@2.3.4
    npm info lifecycle qs@6.5.2~install: qs@6.5.2
    npm info lifecycle minimist@1.2.0~install: minimist@1.2.0
    npm info lifecycle safe-buffer@5.1.2~install: safe-buffer@5.1.2
    npm info lifecycle safer-buffer@2.1.2~install: safer-buffer@2.1.2
    npm info lifecycle asn1@0.2.4~install: asn1@0.2.4
    npm info lifecycle ecc-jsbn@0.1.2~install: ecc-jsbn@0.1.2
    npm info lifecycle semver@5.3.0~install: semver@5.3.0
    npm info lifecycle set-blocking@2.0.0~install: set-blocking@2.0.0
    npm info lifecycle signal-exit@3.0.2~install: signal-exit@3.0.2
    npm info lifecycle sntp@1.0.9~install: sntp@1.0.9
    npm info lifecycle hawk@3.1.3~install: hawk@3.1.3
    npm info lifecycle string_decoder@1.1.1~install: string_decoder@1.1.1
    npm info lifecycle stringstream@0.0.6~install: stringstream@0.0.6
    npm info lifecycle strip-ansi@3.0.1~install: strip-ansi@3.0.1
    npm info lifecycle string-width@1.0.2~install: string-width@1.0.2
    npm info lifecycle strip-json-comments@2.0.1~install: strip-json-comments@2.0.1
    npm info lifecycle rc@1.2.8~install: rc@1.2.8
    npm info lifecycle tough-cookie@2.4.3~install: tough-cookie@2.4.3
    npm info lifecycle tunnel-agent@0.6.0~install: tunnel-agent@0.6.0
    npm info lifecycle tweetnacl@0.14.5~install: tweetnacl@0.14.5
    npm info lifecycle bcrypt-pbkdf@1.0.2~install: bcrypt-pbkdf@1.0.2
    npm info lifecycle sshpk@1.14.2~install: sshpk@1.14.2
    npm info lifecycle uid-number@0.0.6~install: uid-number@0.0.6
    npm info lifecycle util-deprecate@1.0.2~install: util-deprecate@1.0.2
    npm info lifecycle readable-stream@2.3.6~install: readable-stream@2.3.6
    npm info lifecycle are-we-there-yet@1.1.5~install: are-we-there-yet@1.1.5
    npm info lifecycle uuid@3.3.2~install: uuid@3.3.2
    npm info lifecycle verror@1.10.0~install: verror@1.10.0
    npm info lifecycle jsprim@1.4.1~install: jsprim@1.4.1
    npm info lifecycle http-signature@1.2.0~install: http-signature@1.2.0
    npm info lifecycle request@2.88.0~install: request@2.88.0
    npm info lifecycle http-signature@1.1.1~install: http-signature@1.1.1
    npm info lifecycle request@2.81.0~install: request@2.81.0
    npm info lifecycle which@1.3.1~install: which@1.3.1
    npm info lifecycle wide-align@1.1.3~install: wide-align@1.1.3
    npm info lifecycle gauge@2.7.4~install: gauge@2.7.4
    npm info lifecycle npmlog@4.1.2~install: npmlog@4.1.2
    npm info lifecycle wrappy@1.0.2~install: wrappy@1.0.2
    npm info lifecycle once@1.4.0~install: once@1.4.0
    npm info lifecycle inflight@1.0.6~install: inflight@1.0.6
    npm info lifecycle glob@7.1.3~install: glob@7.1.3
    npm info lifecycle rimraf@2.6.2~install: rimraf@2.6.2
    npm info lifecycle fstream@1.0.11~install: fstream@1.0.11
    npm info lifecycle fstream-ignore@1.0.5~install: fstream-ignore@1.0.5
    npm info lifecycle tar@2.2.1~install: tar@2.2.1
    npm info lifecycle tar-pack@3.4.1~install: tar-pack@3.4.1
    npm info lifecycle fs-extra@0.27.0~install: fs-extra@0.27.0
    npm info lifecycle lodash@4.17.11~install: lodash@4.17.11
    npm info lifecycle nan@2.11.0~install: nan@2.11.0
    npm info lifecycle node-gyp@3.8.0~install: node-gyp@3.8.0
    npm info lifecycle node-pre-gyp@0.6.39~install: node-pre-gyp@0.6.39
    npm info lifecycle promisify-node@0.3.0~install: promisify-node@0.3.0
    npm info lifecycle nodegit@0.22.2~install: nodegit@0.22.2
    
    > nodegit@0.22.2 install /Users/test/nodegit-test/node_modules/nodegit
    > node lifecycleScripts/preinstall && node lifecycleScripts/install
    
    [nodegit] Running pre-install script
    [nodegit] Configuring libssh2.
    { Error: Command failed: /Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/test/nodegit-test/node_modules/nodegit/vendor/openssl/openssl
    /Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
    Try `/Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    mkdir: /Users/test/nodegit-test/node_modules/nodegit/cg5102-1275: Permission denied
    mkdir: /Users/test/nodegit-test/node_modules/nodegit/cg-5102: Permission denied
    config.guess: cannot create a temporary directory in /Users/test/nodegit-test/node_modules/nodegit
    configure: error: cannot guess build type; you must specify one
    
        at ChildProcess.exithandler (child_process.js:276:12)
        at emitTwo (events.js:126:13)
        at ChildProcess.emit (events.js:214:7)
        at maybeClose (internal/child_process.js:915:16)
        at Socket.stream.socket.on (internal/child_process.js:336:11)
        at emitOne (events.js:116:13)
        at Socket.emit (events.js:211:7)
        at Pipe._handle.close [as _onclose] (net.js:561:12)
      killed: false,
      code: 1,
      signal: null,
      cmd: '/Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/test/nodegit-test/node_modules/nodegit/vendor/openssl/openssl' }
    /Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
    Try `/Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    mkdir: /Users/test/nodegit-test/node_modules/nodegit/cg5102-1275: Permission denied
    mkdir: /Users/test/nodegit-test/node_modules/nodegit/cg-5102: Permission denied
    config.guess: cannot create a temporary directory in /Users/test/nodegit-test/node_modules/nodegit
    configure: error: cannot guess build type; you must specify one
    
    [nodegit] ERROR - Could not finish preinstall
    { Error: Command failed: /Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/test/nodegit-test/node_modules/nodegit/vendor/openssl/openssl
    /Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option
    Try `/Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    mkdir: /Users/test/nodegit-test/node_modules/nodegit/cg5102-1275: Permission denied
    mkdir: /Users/test/nodegit-test/node_modules/nodegit/cg-5102: Permission denied
    config.guess: cannot create a temporary directory in /Users/test/nodegit-test/node_modules/nodegit
    configure: error: cannot guess build type; you must specify one
    
        at ChildProcess.exithandler (child_process.js:276:12)
        at emitTwo (events.js:126:13)
        at ChildProcess.emit (events.js:214:7)
        at maybeClose (internal/child_process.js:915:16)
        at Socket.stream.socket.on (internal/child_process.js:336:11)
        at emitOne (events.js:116:13)
        at Socket.emit (events.js:211:7)
        at Pipe._handle.close [as _onclose] (net.js:561:12)
      killed: false,
      code: 1,
      signal: null,
      cmd: '/Users/test/nodegit-test/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/test/nodegit-test/node_modules/nodegit/vendor/openssl/openssl' }
    npm verb lifecycle nodegit@0.22.2~install: unsafe-perm in lifecycle false
    npm verb lifecycle nodegit@0.22.2~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/test/nodegit-test/node_modules/nodegit/node_modules/.bin:/Users/test/nodegit-test/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    npm verb lifecycle nodegit@0.22.2~install: CWD: /Users/test/nodegit-test/node_modules/nodegit
    npm info lifecycle nodegit@0.22.2~install: Failed to exec install script
    npm timing action:install Completed in 1949ms
    npm verb unlock done using /Users/test/.npm/_locks/staging-44cd524382b82079.lock for /Users/test/nodegit-test/node_modules/.staging
    npm timing stage:rollbackFailedOptional Completed in 3195ms
    npm timing stage:runTopLevelLifecycles Completed in 23167ms
    npm WARN y@1.0.0 No description
    npm WARN y@1.0.0 No repository field.
    
    npm verb stack Error: nodegit@0.22.2 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
    npm verb stack Exit status 1
    npm verb stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
    npm verb stack     at emitTwo (events.js:126:13)
    npm verb stack     at EventEmitter.emit (events.js:214:7)
    npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
    npm verb stack     at emitTwo (events.js:126:13)
    npm verb stack     at ChildProcess.emit (events.js:214:7)
    npm verb stack     at maybeClose (internal/child_process.js:915:16)
    npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    npm verb pkgid nodegit@0.22.2
    npm verb cwd /Users/test/nodegit-test
    npm verb Darwin 17.7.0
    npm verb argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "nodegit" "--verbose"
    npm verb node v8.12.0
    npm verb npm  v6.4.1
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! nodegit@0.22.2 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the nodegit@0.22.2 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm verb exit [ 1, true ]
    npm timing npm Completed in 23807ms
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/test/.npm/_logs/2018-09-26T08_05_47_888Z-debug.log
    macos-10:nodegit-test test$ 
    macos-10:nodegit-test test$ 
    
  17. maxkorp commented on Sep 28, 2018

    @maxkorp
    Collaborator

    I mean thats a step deeper. That's after it's already failed to find the binary, and is trying to build. Why the hell isn't it finding the binary?

  18. maxkorp commented on Sep 28, 2018

    @maxkorp
    Collaborator

    Oh goddamnit, libssh2 configure runs before node-pre-gyp >.<

    Ughhhhhhhhhhhhhhhhhhhh

    Can you, in the same shell, run mkdir -p /Users/test/nodegit-test/node_modules/nodegit/somedir? You're getting some sort of permissions error it looks like?

    Edit: Oh shit, updated to Mojave and I'm getting this now too.

    That is... useful, if heartbreaking.

  19. maxkorp commented on Sep 28, 2018

    @maxkorp
    Collaborator

    Oh goddamnit. Ye olde "using your system openssl headers the first time around to configure libssh until you build openssl then it will use it the next time around but at that point you've already built" bug strikes again!

    Try this (without libgcrypt installed)

    brew install openssl
    export LDFLAGS="-L/usr/local/opt/openssl/lib"
    export CPPFLAGS="-I/usr/local/opt/openssl/include"
    npm install
  20. maxkorp commented on Sep 28, 2018

    @maxkorp
    Collaborator

    We really gotta figure out how to
    A) Run node-pre-gyp before libssh2 configures
    B) link to the node openssl when appropriate
    C) Build openssl before libssh2 configures

    A) Seems trivial, but post npm2 you cannot run npm install (to get the dev dependencies) from within your npm install script.
    B) This seems underway, although maybe with a good enough setup for C is not necessary
    C and also a bit of A) I had previously started breaking openssl into it's own "nodegitopenssl" package, which is just like, a package.json and a dummy js file combined with the openssl stuff bundled into a linkable lib. I dunno how tennable that is though.
    Alternately, we might have to stop building openssl using node-gyp. Or, ideally, in node-gyp if there is a way to make openssl build first, then run a script (in this case the libssh2 configure), then build libssh2, then everything else. I might die of happiness and hatred if it turns out that it's an ordering problem.

  21. emmax86 commented on Oct 15, 2018

    @emmax86
    Collaborator

    @maxkorp If my understanding of the build process is correct, the changes that landed in #1545 should solve A. We've alleviated the issues with B and C by providing prebuilt OpenSSL binaries for non-Node builds.

  22. TimOwe commented on Oct 16, 2018

    @TimOwe

    Having this issue now:

    $ npm install
    npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
    
    > nodegit@0.22.2 install D:\code\project
    > node lifecycleScripts/preinstall && node lifecycleScripts/install
    
    [nodegit] Running pre-install script
    [nodegit] Running install script
    node-pre-gyp
    ERR! Tried to download(undefined): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.22.2-node-v57-win32-x64.tar.gz
    node-pre-gyp ERR! Pre-built binaries not found for nodegit@0.22.2 and node@8.11.3 (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
    gyp
    
    WARN install got an error, rolling back install
    gyp
    ERR! configure error
    gyp
    ERR!
    stack
    Error: This is most likely not a problem with node-gyp or the package itself and
    gyp ERR!
    stack is related to network connectivity. In most cases you are behind a proxy or have bad
    gyp
    ERR! stack
    network settings.
    gyp
    ERR! stack
    at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:193:21)
    gyp
    ERR!
    stack     at emitOne (events.js:116:13)
    gyp
    ERR!
    
    stack     at Request.emit (events.js:211:7)
    gyp
    ERR!
    stack     at Request.onRequestError (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:878:8)
    gyp
    ERR!
    stack     at emitOne (events.js:116:13)
    gyp
    ERR! stack     at ClientRequest.emit (events.js:211:7)
    gyp ERR! stack
    at TLSSocket.socketErrorListener (_http_client.js:387:9)
    gyp
    ERR! stack
    at emitOne (events.js:116:13)
    gyp
    ERR!
    stack     at TLSSocket.emit (events.js:211:7)
    gyp
    
    ERR! stack     at emitErrorNT (internal/streams/destroy.js:64:8)
    gyp
    ERR! System
    Windows_NT 6.3.9600
    gyp
    ERR! command
    "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=D:\\code\\project\\node_modules\\nodegit\\build\\Release\\nodegit.node" "--module_name=nodegit" "--module_path=D:\\code\\project\\node_modules\\nodegit\\build\\Release" "--python=C:\\Python27\\Python.exe"
    gyp
    ERR! cwd D:\code\project\node_modules\nodegit
    gyp ERR!
    node -v v8.11.3
    gyp
    ERR! node-gyp -v v3.6.2
    gyp
    ERR! not ok
    
    node-pre-gyp
    ERR! build error
    node-pre-gyp
    ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\code\project\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=D:\code\project\node_modules\nodegit\build\Release --python=C:\Python27\Python.exe' (1)
    node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (D:\code\project\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
    node-pre-gyp ERR! stack
    at emitTwo (events.js:126:13)
    node-pre-gyp ERR! stack
    at ChildProcess.emit (events.js:214:7)
    node-pre-gyp ERR!
    stack     at maybeClose (internal/child_process.js:925:16)
    node-pre-gyp ERR!
    stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    node-pre-gyp
    ERR! System Windows_NT 6.3.9600
    node-pre-gyp ERR!
    command "C:\\Program Files\\nodejs\\node.exe" "D:\\code\\project\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
    node-pre-gyp ERR!
    cwd D:\code\project\node_modules\nodegit
    node-pre-gyp ERR!
    node -v v8.11.3
    node-pre-gyp ERR!
    node-pre-gyp -v v0.6.39
    node-pre-gyp
    ERR! not ok
    Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\code\project\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=D:\code\project\node_modules\nodegit\build\Release --python=C:\Python27\Python.exe' (1)
    [nodegit] ERROR - Could not finish install
    [nodegit] ERROR - finished with error code: 1
    
  23. emmax86 commented on Oct 17, 2018

    @emmax86
    Collaborator

    @TimOwe Could you try installing the prerelease for 0.23.0 (semver 0.23.0-alpha.1)? node-gyp seems to be dying in the configure step. The aforementioned PR (#1545) made some dramatic fixes to the configure step, but it hasn't landed in a mainline release yet.

  24. emmax86 commented on Oct 17, 2018

    @emmax86
    Collaborator

    FWIW it may be an entirely different issue. The others in this thread were dying at the Configuring libssh2 step. This step isn't run on Windows at all (as an aside, this is slated to change in #1569), and it certainly runs before node-gyp configure fires.

  25. TimOwe commented on Oct 17, 2018

    @TimOwe

    FWIW it may be an entirely different issue.

    Seems like this was the case. Weird firewall rules I was unaware of have been messing with NPM. Sorted for now!

  26. implausible commented on Oct 17, 2018

    @implausible
    Member

    I'm closing this because there are no prebuilts for 0.22.0 for node 10.3 and won't be due to compatibility issues. The solution is more than likely to upgrade to 0.23.0-alpha.1 or higher.

  27. DerZyklop commented on Feb 3, 2022

    @DerZyklop

    Have this issue on

    • macOS Monterey 12.2 (mac with M1 chip).
    • node 16

    Possible workaround i found:

    nvm use 12
    npm install nodegit
    nvm use 16
    
  28. ianhattendorf commented on Feb 10, 2022

    @ianhattendorf
    Member

    nvm use 12
    npm install nodegit
    nvm use 16

    That is unlikely to work, or if it does it will have sporadic issues, as the native bindings are different for each version of node.

    See #1840 (comment) regarding prebuilts for Node 16.

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