husky install error


项目安装依赖的时候,yarn最后报了个错,是

husky install 没有成功。

 

解决:

没有git 环境, husky是配合git来操作的, 运行命令:

git init

然后再yarn就可以了。