nodegit / nodegit/nodegit

Error installing nodegit

Open
#1,927 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.8k
Forks
704
PR merge metrics
No merged PRs in 30d

Description

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 har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated node-pre-gyp@0.13.0: 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))"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing npm install nodegit with Node v16.16.0, npm 8.11.0, and Ubuntu 22.04, then inspect the lifecycleScripts/preinstall and lifecycleScripts/install output together with the referenced npm debug log. Done means identifying the installation failure for this environment and documenting or confirming a supported resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript, nodejs
Domain
build-system, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.