【发布时间】:2018-07-09 02:16:42
【问题描述】:
我正在尝试在装有 High Sierra v10.13 的 Mac mini 上安装 Homebrew。我按照指示运行以下命令:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
终端通知我它将安装 brew 并询问密码,但最终失败并显示以下消息:
The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
==> Installing
==> /usr/bin/sudo /usr/sbin/softwareupdate -i
Software Update Tool
: No such update
No updates are available.
==> /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
请帮我解决这个问题。谢谢。
【问题讨论】:
标签: xcode macos homebrew macos-high-sierra