共计 287 个字符,预计需要花费 1 分钟才能阅读完成。
![Macos更新后[oh-my-zsh] Can't update: not a git repository Macos更新后[oh-my-zsh] Can't update: not a git repository](https://deeplearn-1251474370.cos.ap-guangzhou.myqcloud.com/uPic/2024/01/lukas-hellebrand-E1S962T0g5c-unsplash%20(1).jpg)
场景:macOs更新系统 14.2.1 后,使用iterm2出现此类问题。
解决方法:
cd ~/.oh-my-zsh
git init
此时出现: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
此为更新系统导致xcode插件缺失出现的问题。安装下xcode相关插件即可
xcode-select --install
等待安装完成。oh-my-zsh即可正常更新.
正文完
请博主喝杯咖啡吧!