Closed marcelloromanelli closed 7 years ago
I too had this issue on v1.1.2. @TitanNano’s workaround fixed it for me: https://github.com/tarmolov/git-hooks-js/issues/22#issuecomment-246307819
Oh... Sorry guys for a such nasty bug. I've pushed 1.1.3
with a workaround for backward compatibility. It should fix the error. Please let me know if it help or doesn't :)
npm 3.x doesn't execute preuninstall
during installation. That's why you've seen the error.
https://github.com/npm/npm/issues/13963
Seems to work, thanks! I verified by...
npm uninstall git-hooks
npm install git-hooks@1.1.1
npm install git-hooks@1.1.2
// reproduced issue, then...
npm install git-hooks@1.1.3
// no issue!
Same here @tarmolov. Thanks a lot for the quick fix.
After the latest update I'm getting this error:
I currently have two githooks:
commit-msg
pre-commit