-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
After upgrade to husky v5, git commit from vscode always fail (via terminal is ok).
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
.husky/pre-commit: line 4: npx: command not found
husky - pre-commit hook exited with code 127 (error)
npm version: 7.5.1
node version: 15.8.0
Hooks
// pre-commit
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
roberto-naharro, lensbart, yhlchao, justinfagnani, mkosir and 52 moreTh3S4mur41, mkosir, alexx855, igolskyi, Emad-Emami and 4 more
Metadata
Metadata
Assignees
Labels
No labels
