Каждый раз, когда я пытаюсь зафиксировать, я получаю следующую ошибку.
[?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)
Мне кажется, это не проблема с крючком, но я не уверен, кто-нибудь может мне помочь?