nodegit: Failed at the nodegit@0.13.0 install script 'node lifecycleScripts/install'
- Debian Jessie.
npm install nodegit
fails with that error.
What I see is that in package.json there is:
"scripts": {
"install": "node lifecycleScripts/install"
}
AFAIK this is wrong. Depending on the NPM version (and not sure what else) the install
script is executed before moving the lib to its proper location under node_modules
.
postinstall
is the way to go.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 7
- Comments: 34 (4 by maintainers)
EDIT:
Looks like for OSX I just needed to install
libgcrypt
via Homebrew and this was successful.I feel I am running into a similar issue as others here. I’m on OSX 10.12.2. For the sake of trying, I did install
libssh2
via Homebrew, but it hasn’t changed anything. Here’s my output:Currently, nodegit requires you to have the openssl dev headers installed. On ubuntu:
sudo apt-get install libssl-dev
That should take care of it. If it doesn’t, let us know and we’ll reopen. related: https://github.com/nodegit/nodegit/issues/1093Hello to everyone!, I’m having the same issue. Could you give me some suggestions?
OS: CentOS release 6.8 (Final) Node.js: v6.9.2 npm: v3.10.9
output:
Regards!
@maxkorp
sudo apt-get install libssl-dev
fixed this issue for me on UbuntuYeah, your image will have to install libssl-dev (or openssl-devel on centos i think it’s called). See: #1093
@saper Done: #1103 Thanks for looking into this (although updating Node solved the issue for me).