尝试提交时出现奇怪的错误 [主题-空]

问题描述

我在 CLI 中输入这个

git commit -m "Hello World!"

这是我收到的错误信息

husky > commit-msg (node v14.15.3)
⧗   input: Hello World!
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

✖   found 2 problems,0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

husky > commit-msg hook Failed (add --no-verify to bypass)

这是什么意思?

解决方法

我用“npm uninstall husky”解决了这个问题