你好,当我试图使用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
请你帮忙!
发布于 2020-05-12 09:24:45
经过几次在web上的尝试和搜索,我最终通过安装xcode命令行工具的最后版本就解决了这个问题。
发布于 2021-08-17 02:15:25
今天早上,我真的面临着同样的问题,我安装了所有的软件更新,但没有任何工作。有人提到使用brew update
什么都不使用。
softwareupdate --all --install --force
运行brew doctor
要求清除命令行工具并重新安装xcode
。
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
我也这么做了,然后安装了芒果社区版,它起作用了!
https://stackoverflow.com/questions/61751648
复制