使用 Homebrew 安装 mongodb-community 时出错
Error while installing mongodb-community using Homebrew
您好,我在尝试使用 Homebrew 安装 MongoDB 时遇到此错误。
Updating Homebrew...
==> Installing mongodb-community from mongodb/brew
Error: An exception occurred within a child process:
NoMethodError: undefined method `path' for nil:NilClass
Did you mean? paths
请大家帮忙!
经过多次尝试和网络搜索,我最终通过安装最新版本的 xcode 命令行工具解决了这个问题。
今天早上我真的遇到了同样的问题,我安装了所有软件更新但没有任何效果。有人提到没有使用 brew update
。
softwareupdate --all --install --force
运行 brew doctor
要求清除命令行工具并重新安装 xcode
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
我也是这样做的,然后安装了mongo社区版,成功了!
您好,我在尝试使用 Homebrew 安装 MongoDB 时遇到此错误。
Updating Homebrew...
==> Installing mongodb-community from mongodb/brew
Error: An exception occurred within a child process:
NoMethodError: undefined method `path' for nil:NilClass
Did you mean? paths
请大家帮忙!
经过多次尝试和网络搜索,我最终通过安装最新版本的 xcode 命令行工具解决了这个问题。
今天早上我真的遇到了同样的问题,我安装了所有软件更新但没有任何效果。有人提到没有使用 brew update
。
softwareupdate --all --install --force
运行 brew doctor
要求清除命令行工具并重新安装 xcode
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
我也是这样做的,然后安装了mongo社区版,成功了!