每次我尝试提交时都会收到以下错误。
[?2004h"/Users/<Username>/repos/ng-bootstrap/.git/hooks/commit-msg"
.git/COMMIT_E
</.git/hooks/commit-msg" .git/COMMIT_ED
</.git/hooks/commit-msg" .git/COMMIT_EDITMSG 0<&- && exit || exit[?2004l
husky > npm run -s commitmsg (node v9.10.1)
/Users/<Username>/repos/ng-bootstrap/misc/validate-commit.js:93
var incorrectLogFile = commitMsgFile.replace('COMMIT_EDITMSG', 'logs/incorrect-commit-msgs');
^
TypeError: Cannot read property 'replace' of undefined at Object.<anonymous> (/Users/<Username>/repos/ng-bootstrap/misc/validate-commit.js:93:40)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Function.Module.runMain (module.js:690:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:666:3
husky > commit-msg hook failed (add --no-verify to bypass)
我认为这不是一个问题,但我不确定,有人可以帮助我吗?