【发布时间】:2022-08-10 03:16:10
【问题描述】:
我已经安装了 husky,它运行了几个月,然后在重新启动后突然出现了这个错误:
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
我不知道是什么原因造成的,但我无法提交我的更改。显然我可以绕过这个钩子,但我想解决这个问题。
标签: javascript npm npx husky git-husky