请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

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)

正在回答 回答被采纳积分+3

1回答

提问者 MiloFeng 2022-03-05 17:23:21

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

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号