美文网首页
解决 VSCode git commit 时 No such f

解决 VSCode git commit 时 No such f

作者: 胡小喵_ | 来源:发表于2021-08-09 11:45 被阅读0次

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

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

npx husky install

相关文章

网友评论

      本文标题:解决 VSCode git commit 时 No such f

      本文链接:https://www.haomeiwen.com/subject/gclzvltx.html