I'm seeing errors when I use husky hooks in a node project and attempt to commit to git via an app, SourceTree. The hooks are specified in package.json. I'm using nvm to manage node versions.
The error Can't find node in PATH husky > pre-commit hook failed
is reported when SourceTree is used for a git commit.
Once this error is bypassed, husky reports another error when commit is attempted via SourceTree, using SourceTree's embedded git: "Current directory is not a git directory!".
How can I resolve the errors?