Git提交代码解决报错:githookspre-commit line 2 .node_modulespre-commithook No such file or directory
Git提交代码解决报错:git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: No such file or directory1.需求背景今天Git提交代码时一直报错,导致代码提交失败:git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: No such file or directory解决方案pre-commit检测出错了,手动启用husky即可
复制链接