I'm using husky v8
and when I want to commit file changes on the repository I get this git error
.husky/pre-commit: line 4: npx: command not found
husky - pre-commit hook exited with code 127 (error)
husky - command not found in PATH=/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core:/usr/bin:/bin:/usr/sbin:/sbin
here is pre-commit
file
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
this is prepare
command in package.json
"prepare": "husky install",
I'm guessing I should define an environment variable