解决git commit 提交代码 No such file or directory 报错问题 运行npx husky install命令 也找了其他方法,这个有用,安装后项目文件夹里会自动创建.husky文件 可正常提交代码拉。