美文网首页
brew update异常+权限处理

brew update异常+权限处理

作者: 上进青年欢乐多 | 来源:发表于2017-03-28 11:40 被阅读360次

    问题描述
    stRusherdeMacBook-Pro:~ tuanShao$ brew update xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Stashing your changes: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: Failure while executing: git stash save --include-untracked --quiet

    解决方案

    xcode--select --install

    stRusherdeMacBook-Pro:~ tuanShao$ brew update warning: unable to unlink .yardopts: Permission denied warning: unable to unlink CONTRIBUTING.md: Permission denied warning: unable to unlink SUPPORTERS.md: Permission denied fatal: cannot create directory at '.github': Permission denied Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master

    解决思路

    提升权限
    sudo chown -R $USER:admin /usr/local

    cd /usr/local git status git reset --hard origin/master git clean -d

    Paste_Image.png

    相关文章

      网友评论

          本文标题:brew update异常+权限处理

          本文链接:https://www.haomeiwen.com/subject/aqkjottx.html