解决 VSCode git commit 时 No such file or directory 报错问题

在git 进行 commit 时出现了 Git: .git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: No such file or directory 报错

在命令行里运行以下命令回车即可解决。

npx husky install


作者:胡小喵_
链接:https://www.jianshu.com/p/4d1df7fa6ebe

posted @ 2021-11-18 16:59  honely1314  阅读(1388)  评论(0编辑  收藏  举报