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

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

error Command "husky-run" not found.

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

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

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

rm -rf .git/hooks

然后重新提交即可。

posted @ 2023-06-24 19:10  叶乘风  阅读(457)  评论(0编辑  收藏  举报