New issue
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
error Command "husky-run" not found. #881
Comments
@SeyyedKhandon The API changed a lot from v4 to v5. |
I had the problem with v4 which made me think it may be fixed with the upgrade to v5, which it didn't😢. |
A few action to take in order to narrow the problem source:
Could you please tell us if you are committing from your terminal or from a GUI app (if so, which one)? So far, your pre-commit file is empty, is it normal? |
Are you using |
I had this issue when Dependabot bumped Husky to v5. To resolve I did the following:
This worked for me, and I then cleaned the old Husky git hooks out once I was sure everything was good. |
After struggling with this issue, I ended up with a new clone of my project and use |
Yarn doesn't seem to run husky's Two ways to fix that:
|
for husky version 6 run |
I've faced an issue with husky which prevents me from committing, It's kind of confusing because it was working before that, but now, I'm getting an error which says
error Command "husky-run" not found.
I've checked it and it was in
package.json
and also I upgraded it and removed and installed it again, but it doesn't fix that,How can we fix it? (someone on stackoverflow said we should remove
git hooks
and so on, which seems not a very good solution).this is my
pre-commit
:The text was updated successfully, but these errors were encountered: