nodegit icon indicating copy to clipboard operation
nodegit copied to clipboard

Error installing nodegit

Open arunkumar413 opened this issue 3 years ago • 4 comments

I'm facing issues trying to install nodgit on my local machine. Here is the error message. Could you please help me?

arun@tuxnest:~/projects/expressJsTemplate$ npm install nodegit
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm ERR! code 1
npm ERR! path /home/arun/projects/expressJsTemplate/node_modules/nodegit
npm ERR! command failed
npm ERR! command sh -c node lifecycleScripts/preinstall && node lifecycleScripts/install

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/arun/.npm/_logs/2022-08-07T11_04_19_946Z-debug-0.log
arun@tuxnest:~/projects/expressJsTemplate$ 

System information

  • node version: v16.16.0
  • npm or yarn version: 8.11.0
  • OS/version/architecture:ubuntu/22.04/x64
  • Applicable nodegit version: latest
node -v
npm -v # (or yarn -v)
node -e "console.log(process.platform)"
node -e "console.log(require('os').release())"
node -e "console.log(console.log(process.arch))"

arunkumar413 avatar Aug 07 '22 11:08 arunkumar413

Facing the same problem. Logs indicate that https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v108-win32-x64.tar.gz is not available.

JosXa avatar Aug 10 '22 09:08 JosXa

Try the latest alpha version npm install nodegit@next

xuxucode avatar Aug 13 '22 01:08 xuxucode

I met the same problem and trying to install libstdc++-4.9-dev but errors:

jiji@play:~/downloads/git$ sudo apt-get install libstdc++-4.9-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libstdc++-4.9-dev
E: Couldn't find any package by glob 'libstdc++-4.9-dev'
E: Couldn't find any package by regex 'libstdc++-4.9-dev'
jiji@play:~/downloads/git$ sudo apt-get install libstdc++-4.9

mmdjiji avatar Aug 30 '22 03:08 mmdjiji

I met the same problem and trying to install libstdc++-4.9-dev but errors:

jiji@play:~/downloads/git$ sudo apt-get install libstdc++-4.9-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libstdc++-4.9-dev
E: Couldn't find any package by glob 'libstdc++-4.9-dev'
E: Couldn't find any package by regex 'libstdc++-4.9-dev'
jiji@play:~/downloads/git$ sudo apt-get install libstdc++-4.9

You can try with libstdc++-dev. libstdc++-4.9-dev is a really old package, the newest reference I found was from Ubuntu xenial.

But should be enough with build-essential, and possibly libssh-dev and libkrb5-dev.

weedz avatar Sep 01 '22 09:09 weedz