question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

git-hours doesn't install

See original GitHub issue

Same error as #14 is reported when attempting to run git-hours.

First was using node 8.10.0, but I tried switching to the latest 5 and latest 4 using nvm and I still couldn’t get it working.

Addition: I also tried installing the latest version of nodegit which doesn’t produce an error when I install it (sudo npm install -g nodegit@0.20.0) and that didn’t work either

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Panthrocommented, Dec 15, 2018
docker run --rm -v $(pwd):/code khor/git-hours
1reaction
benckxcommented, Aug 20, 2020

Also doesn’t install for me. I installed nodegit before. Not sure whether it is the same issue.

➜  ~ npm install -g nodegit
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

> nodegit@0.27.0 install /home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/nodegit
> node lifecycleScripts/preinstall && node lifecycleScripts/install

[nodegit] Running pre-install script
[nodegit] Running install script
node-pre-gyp
WARN Using request for node-pre-gyp https download
[nodegit] Success: "/home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/nodegit/build/Release/nodegit.node" is installed via remote
[nodegit] Completed installation successfully.

> nodegit@0.27.0 postinstall /home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/nodegit
> node lifecycleScripts/postinstall

+ nodegit@0.27.0
added 164 packages from 160 contributors in 13.214s
➜  ~ npm install -g git-hours
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/home/benoit/.nvm/versions/node/v12.10.0/bin/git-hours -> /home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/src/index.js

> nodegit@0.13.2 install /home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/node_modules/nodegit
> node lifecycleScripts/install

/home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/node_modules/promisify-node/utils/args.js:9
  var args = func.toString().match(/function\s.*?\(([^)]*)\)/)[1];
                                                              ^

TypeError: Cannot read property '1' of null
    at module.exports (/home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/node_modules/promisify-node/utils/args.js:9:63)
    at /home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/node_modules/promisify-node/index.js:79:29
    at Array.filter (<anonymous>)
    at processExports (/home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/node_modules/promisify-node/index.js:60:6)
    at module.exports (/home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/node_modules/promisify-node/index.js:112:10)
    at Object.<anonymous> (/home/benoit/.nvm/versions/node/v12.10.0/lib/node_modules/git-hours/node_modules/nodegit/generate/scripts/generateNativeCode.js:3:13)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodegit@0.13.2 install: `node lifecycleScripts/install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nodegit@0.13.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!     /home/benoit/.npm/_logs/2020-08-20T08_10_21_921Z-debug.log
➜  ~ npm -v  
6.13.6
Read more comments on GitHub >

github_iconTop Results From Across the Web

git-hours doesn't install with node 12 · Issue #43 - GitHub
I'm using and Ubuntu 18.04 with node 12.6.0. When I type npm install -g git-hours (using a working nvm configuration) I get this: ......
Read more >
Install from GitHub repo doesn't download all files
No JS files are installed, only License, package.json and README.md are installed, so I can't import anything from the library. How to install...
Read more >
git-hours - npm
Start using git-hours in your project by running `npm i ... Install. npm i git-hours. Repository. github.com/kimmobrunfeldt/git-hours ...
Read more >
Git and GitHub Tutorial #3 - How to Install Git on Windows
... USD 5.99/Month - https://bit.ly/all-courses-subscriptionIn this Git and GitHub Tutorial, we will learn about git installation on windo.
Read more >
How to Install Git and Clone a Repository - QA Madness
In this post, we will show how to install Git on Windows. #1 Step. Open Google and search for git on windows. Go...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found