安装homebrew错误The operation couldn’t be completed. No such file or directory Done.

本人小白,不懂如何解决,麻烦各位前辈指点一二,谢谢。

电脑系统:macOS Mojave 10.14.3

安装homebrew用的是官网最新版本,下面是安装时的代码。

Last login: Fri Mar 1 08:51:08 on console
bogon:~ jinzesu$ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent…)”
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /Users/jinzesu/Library/Caches/Homebrew
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /Users/jinzesu/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown jinzesu /Users/jinzesu/Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools (macOS Mojave version 10.14) for Xcode-10.1
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command Line Tools (macOS Mojave version 10.14) for Xcode-10.1
Software Update Tool

Downloading Command Line Tools (macOS Mojave version 10.14) for Xcode
Error downloading Command Line Tools (macOS Mojave version 10.14) for Xcode: The operation couldn’t be completed. No such file or directory
Done.

Error downloading updates.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
xcode-select: error: invalid developer directory ‘/Library/Developer/CommandLineTools’
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

猜你喜欢

转载自blog.csdn.net/Zeecity/article/details/88050954
今日推荐