-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
pre-commit hook failed (add --no-verify to bypass) #716
Comments
@typicode it seems like reverting back to using |
Have a similiar problem, with additionall data:
no, not using nvm :) every dev is on the latest node anyway |
Same situation as @Thorbenl cept mine is barking about
|
Same on Windows:
Why is it using node v11, when I have another node version installed?
|
same here, with husky 4.2.5,eslint 7.0.0, prettier 2.0.5,pre-commit doesn't work. |
I had the same problem on babun console with git version 2.21.0 Downgrading "lint-staged" to version 8.1.7 fixed the issue. |
I ran into the same issue. I copied |
Hey @cjoecker, I believe this issue is because of the fact that For a temporary solution, you can just delete the |
Facing same issue for pre-commit hook failed with below husky "husky": { |
Not compitable with node 10. tried with node 12.18.3 .worked great |
Finally found a solution. The issue (even though it's not an issue! ) is because of the hooks created by react. I simply deleted the hooks folder for git which defines the pre-commit hooks and hence can push after that. Edit: You can also skip hooks when you provide the git command line argument —no-verify, git push origin master --no-verify, or use Sourcetree‘s Bypass commit hooks setting (in the menu to the top right of the commit message field) |
This worked for me. Thanks @AnandB23, you saved me from wasting more hours on this |
Not really a solution if you want the hooks to run. If you just delete the folder then it just stops working. I am having the same issue. Only happens on my Windows machine and I still haven't found a solution. When I try to make a commit I get this:
package.json
.huskyrc.json
.lintstagedrc.json
On Mac and Linux this issue does not seem to happen. I tired uninstalling nodejs and installing the latest version, but it did not help. Edit: Managed to make it work by changing .huskyrc.json
However now I am just bypassing lint-staged, but what if I want that to work too? |
Is there any update to this? I am still having the same problem. I cannot use
|
I updated husky to the latest version (^5.0.9) and the problem was gone. |
Running
...from following line: node_modules/husky/lib/runner/index.js:48
So, this means, that You just forgot to install it! (But it works running The REAL solution is:
|
Before trying to upgrade to a higher version, note that in higher versions git hooks are not installed automatically so you have to create an additional configuration file for your hooks. And the migration process from version 4 to 5 in: I hope that it will be useful to you and forgive my English, I do not master it well, Greetings! |
Hello. I have this error when my JEST tests isn't solved |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
check your node version compatibility with npm, its work in my side. |
I'm getting the following error:
This is my package.json
I tried everything that is mentioned here but nothing works.
I have the latest vesion of everything:
intellij IDEA 2020.1, node 13.13.0, npm 6,14,4, git 2.24.0.windows.2, husky 4.2.5
The text was updated successfully, but these errors were encountered: