Skip to content

Husky 9 hooks not working in Gitkraken #1421

Answered by posti85
posti85 asked this question in Q&A
Discussion options

You must be logged in to vote

For any one with the same error: I have removed node_modules folder and reinstalled the project, and now the error became to:

/usr/bin/env: 'bash': No such file or directory
husky - pre-commit script failed (code 127)
husky - command not found in PATH=...
Hook process exited.

But this time, it was easy to fix: just configuring in GitKraken to use the external Windows git (instead of the bundled one) in File > Preferences > Experimental > Git Executable.

And now it works!

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by posti85
Comment options

You must be logged in to vote
5 replies
@EsoterikStare
Comment options

@berkon
Comment options

@wctiger
Comment options

@wctiger
Comment options

@navatweb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants