IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Macos更新后[oh-my-zsh] Can’t update: not a git repository

    admin发表于 2024-01-04 15:31:45
    love 0

    lukas-hellebrand-E1S962T0g5c-unsplash (1)

    场景: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即可正常更新.



沪ICP备19023445号-2号
友情链接