git commit -m 'xxxx'之后会有如下报错~

来源:2-11 使用 husky + commitlint 检查提交描述是否符合规范要求

MiloFeng

2022-03-05

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmmirror.com/commotlint - [NOT_FOUND] commotlint not found
npm ERR! 404
npm ERR! 404 ‘commotlint@latest’ is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/milofeng/.npm/_logs/2022-03-05T09_08_39_750Z-debug.log
husky - commit-msg hook exited with code 1 (error)

写回答

1回答

MiloFeng

提问者

2022-03-05

已经找到错误,不应该是commotlint,应该是commitlint。本人手写有误。抱歉

0
0

基于Vue3新标准,打造后台综合解决方案

基于Vue3重写Vue-element-admin,打造后台前端综合解决方案

1941 学习 · 1687 问题

查看课程