error Command "husky-run" not found.
See original GitHub issueI’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:

Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to fix error 'not found husky-run' when committing new ...
To fix this there are two methods, depending on which version of Husky you are already on. If you're using Husky v4 or...
Read more >Command "husky-run" not found. · Issue #854 - GitHub
Just have upgraded from v4.3.8 to v5.0.9 and got the error have tried to uninstall/install husky, remove npde_modules - nothing helped > git ......
Read more >husky: command not found with npm install --production
Recently, while attempting to build a Docker container, I ran into a bit of a dilemma. Upon running npm install --production I was...
Read more >error command "husky-run" not found. - You.com - You.com
#Solution 1: ... Delete the .git/hooks folder and then do the npm install for reinstall husky. There are chances for conflicts with husky-generated...
Read more >Husky - Git hooks
Command not found ... If you're running Git from an app and the command can be found in your terminal, this means that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
for husky version 6 run
yarn husky install(@typicode solution)Yarn doesn’t seem to run husky’s
uninstallscript when upgrading husky, which leaves some files in.git/hooks.Two ways to fix that:
.git/hooks(this should be the case for most people) and delete.git/hooks.yarn husky init(recommended) (you can still remove everything in.git/hooks, if you want to clean any artifact lefts by husky v4 😃