Installed but "git: 'hours' is not a git command"
kontur opened this issue · 7 comments
I tried installing this helper. From what I can tell both git-hours:
$ npm list -g | grep git-hours
├─┬ git-hours@1.3.0
and nodegit:
$ npm list -g | grep nodegit
│ └─┬ nodegit@0.13.2
│ └─┬ nodegit-promise@4.0.0
└─┬ nodegit@0.20.3
└─┬ nodegit-promise@4.0.0
seem installed. However, when I run $ git hours
in a git repository root I get this message:
$ git hours
git: 'hours' is not a git command. See 'git --help'.
My npm version is 5.6.0, my node is 9.5.0.
One time somebody I know began a Facebook post with "We only have koi eating otters in Canada . . ."
I was astonished by the idea that koi could eat otters. That seemed absolutely crazy to me and I thought there was no way that could be true. I was right - he just forgot the hyphen in "koi-eating otters"
Anyway, I think you meant git-hours
Hm. All of the documentation reads $ git hours
- which is probably where my wrong assumption came from?
Oh, I didn't even realize that. I bet @kimmobrunfeldt has it set like that in his git config or something
Nah, I've since seen other modules for git defined as git-something
and they are then available as $ git something
— it just was not obvious to me when I tried to establish if the module was installed. I can't say which now $ git hours
works for me — could this be to do with the git version?
same for me.
After new release 1.5.0, npx git-hours
works again! Tested with node 14, macOS. The node version is probably quite specific.
It used to work by default with a space separation, not sure about today. Updated guides to still use the dash version.