I have installed husky and it was working fine for months and then out of the blue today after a restart this error came up:
husky - command not found in PATH=/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core:/usr/bin:/bin:/usr/sbin:/sbin
.husky/pre-commit: line 4: npx: command not found
I don't know what could have caused it but I can't commit my changes. Obviously I could bypass the hook but I want to fix this issue.