husky > pre-commit (node v19.7.0)
sh: yarn: command not found
husky > pre-commit hook failed (add –no-verify to bypass)
There are two ways to resolve this issue during commit.
- Inside your projects root directory , go to .git directory by typing
- Now delete hooks directory by typing
rm -r hooks
- Another way to solve this problem is to use –no-verify during git commit.
- For example :- git commit -m “commit message” –no-verify