-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
No such file or directory 2: ./node_modules/pre-commit/hook error when commiting #13738
Comments
Thanks for the issue @k-matti. Are you wanting to use a For reference we are tracking the option to skip |
Hi @steveward I don't want to remove hooks from repo. I just want to use GitHub desktop instead of git from command line where everything works fine. |
Try following the solution mentioned here and here of making this change: npm -> npm.cmd
npx -> npx.cmd Let us know if that helps. |
I run these commands in CMD but get still the same error |
@k-matti just to clarify -- you need to edit your hooks with that change -- is that what you did? |
@steveward don't have hooks folder. I switch do sourcetree and everything works fine there |
Describe the bug
Can't commit because of " No such file or directory 2: ./node_modules/pre-commit/hook" error everytime
Version & OS
Version 2.9.6 (x64)
Steps to reproduce the behavior
Screenshots
The text was updated successfully, but these errors were encountered: