hexo提交文章出现问题

问题记录

hexo发布文章报错记录:Unhandled rejection TypeError: Cannot set property ‘lastIndex’ of undefined

发布文章时出现问题,同时报的错还有:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解决措施

发现是git出现问题!!!

控制端输入:

1
brew install git
1
xcode-select --install

在xcode-select指令安装好之后,再命令检查一下git指令的帮助信息:

1
git -h

可以正确输出相应的帮助信息,意味着git已经被修复好了。

原因

更新了Catalina导致的,新系统辣鸡哈哈哈哈哈哈

Thank you for your accept. mua!
-------------本文结束感谢您的阅读-------------