.git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: No such file or directory
Posted ur home
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了.git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: No such file or directory相关的知识,希望对你有一定的参考价值。
执行 npx husky install
husky - Git hooks installed
以上是关于.git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: No such file or directory的主要内容,如果未能解决你的问题,请参考以下文章
text Git预提交挂钩(.git / hooks / pre-commit)以防止意外提交调试代码(在源注释中添加NOCOMMIT)
解决fatal: cannot run .git/hooks/commit-msg: No such file or directory的问题