We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command not found
It seems after lefthook 1.6.18, when git hooks are run an error occurs with the message sh: lefthook: command not found.
sh: lefthook: command not found
❯ npx lefthook version -f sh: lefthook: command not found
❯ npx lefthook@1.6.18 version -f 1.6.18 4ea200b04d374ba1bb9f66a940430309a2838d27
No solution, since when lefthook creates git hooks, it falls in this elif:
elif
elif command -v npx >/dev/null 2>&1 then npx lefthook "$@"
So, it is not possible in this case to set lefthook version, correct?
❯ LEFTHOOK_VERBOSE=true npx lefthook version -f sh: lefthook: command not found
❯ node --version v20.15.1 ❯ npm --version 10.8.2
The text was updated successfully, but these errors were encountered:
Hi @mrexox ! The error persists
I think the fix will solve pre-installed git hooks, but new ones will throw the error above
Sorry, something went wrong.
14.4.1
Yes, npx lefthook is still not working for some reason. I am investigating.
npx lefthook
I've fixed the issue with 1.7.4 release!
Successfully merging a pull request may close this issue.
🔧 Summary
It seems after lefthook 1.6.18, when git hooks are run an error occurs with the message
sh: lefthook: command not found
.Lefthook version
❯ npx lefthook version -f sh: lefthook: command not found
Steps to reproduce
❯ npx lefthook version -f sh: lefthook: command not found
Expected results
Actual results
❯ npx lefthook version -f sh: lefthook: command not found
Possible Solution
No solution, since when lefthook creates git hooks, it falls in this
elif
:So, it is not possible in this case to set lefthook version, correct?
Logs / Screenshots
❯ LEFTHOOK_VERBOSE=true npx lefthook version -f sh: lefthook: command not found
node/npm
The text was updated successfully, but these errors were encountered: