2023-06-24 error Command "husky-run" not found.

发布时间 2023-06-24 19:12:16作者: 哎呦你可棒棒了

前言:用git提交代码到git,完整报错:

error Command "husky-run" not found.

git 未能顺利结束 (退出码 1) (875 ms @ 2023/6/24 19:05:32)

原因:估计是项目中的eslint导致的这个问题。

解决方案:执行强制提交,请在项目根目录打开终端运行:

rm -rf .git/hooks

然后重新提交即可。