You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to commit any changes via GitHub Desktop having a precommit hook.
Expected behaviour:
No errors when precommit hooks return no error.
Actual behaviour:
I see this error:
Commit failed - exit code 1 received, with output: '> husky - npm run -s precommit
env: node: No such file or directory
> husky - pre-commit hook failed (add --no-verify to bypass)
> husky - to debug, use 'npm run precommit''
(npm run precommit works fine. I can commit via command line without any issues.)
Activity
niik commentedon May 24, 2017
I believe this is another problem with our Git shell not inheriting environment variables such as PATH on Windows, cc #1578 (comment)
sapegin commentedon May 24, 2017
Looks like so! ;-)
joshaber commentedon May 26, 2017
I'm gonna roll this into #1796 so that we can track the underlying cause.