-
Notifications
You must be signed in to change notification settings - Fork 152
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 on windows commit (hook: line 49: : command not found) #139
Comments
I just faced the similar issue in our CI system. I am wondering if we could do something like
instead of
at https://github.com/observing/pre-commit/blob/master/hook? Please excuse my ignorance, if I am oversimplifying it. Happy to raise a PR, if this is an accepted solution. |
same error, ubuntu 18.04, vs code 1.28.2-1539735992, nvm 0.33.5, node v8.12.0, npm 6.4.1, git 2.19.1, pre-commit 1.2.2 |
fixed it by editing the file: to include the line: for example:
|
I just solved this problem: Install nodejs on Windows, then add a @3rd-Eden maybe you could add this info to the readme? |
I was having a similar issue trying to commit within VS Code in Ubuntu 18.04. Just chiming in so that this helps someone else that end's up searching after having this issue When using n for your Node Version Management, if you run into this issue, I was able to resolve it by adding It now looks like this:
|
The same problem. |
Windows10 git bash setting environment variables can solve the problem. $ vim ~/.bashrc
# add in .bashrc
PATH=$PATH:/c/Program\ Files\ \(x86\)/nodejs |
I also had the following issue:
I fixed it by adding "C:\Program Files\Git\cmd" to my %PATH% system variable (Windows 10). My Git version is: 2.24.0.windows.2 |
Had this issue recently and it seemed to be related to using nvm-windows Fixed this issue by making sure the following were included in the System Variables > Path (the definitions were already present in the User Variables Path):
|
I'am having trouble using pre-commit, 1.2.2. When i try to commit i have an error
./node_modules/pre-commit/hook: line 49: : command not found
win 8, Intelij Idea 2016 (with integrated git), npm 6.1.0, node v10.6.0
The text was updated successfully, but these errors were encountered: