kimmobrunfeldt / git-hours

Estimate time spent on a git repository
MIT License
774 stars 59 forks source link

Installed but "git: 'hours' is not a git command" #33

Closed kontur closed 3 years ago

kontur commented 6 years ago

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.

KernelDeimos commented 6 years ago

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

kontur commented 6 years ago

Hm. All of the documentation reads $ git hours - which is probably where my wrong assumption came from?

KernelDeimos commented 6 years ago

Oh, I didn't even realize that. I bet @kimmobrunfeldt has it set like that in his git config or something

kontur commented 6 years ago

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?

mhashim6 commented 5 years ago

same for me.

kimmobrunfeldt commented 3 years ago

After new release 1.5.0, npx git-hours works again! Tested with node 14, macOS. The node version is probably quite specific.

kimmobrunfeldt commented 3 years ago

It used to work by default with a space separation, not sure about today. Updated guides to still use the dash version.