-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Milestone
Description
Hey there,
I'm using husky to run a pre-commit hook on my repo, and everything runs correctly in my terminal when I run
git commit -m "some message"
The issue is when I try and commit with Fork, and it attempts to run the pre-commit hook and fails because it can't find node. Here's the full error from Fork
Pre-commit hook 'pre-commit' has failed:
husky > npm run -s precommit (node )
husky > pre-commit hook failed (add --no-verify to bypass)
/Users/brandon/project/.git/hooks/pre-commit: line 49: node: command not found
env: node: No such file or directory
when I run which node I get
/Users/brandon/.nvf/installed/node-8.5.0/bin/node
Full disclosure I'm using macOS, with fish shell, and nvf to manage my node versions. I just really wonder how Fork is running the pre-commit in a way where it can't find my node installation. Let me know if you have any questions or need more info.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels