3

I am a newbie in mongo db and trying to install in my Mac Big Sur OS. It is a public beta OS.
While install the Mongo DB, I am getting the below error:

Error: An exception occurred within a child process:
NoMethodError: undefined method 'path' for nil:NilClass
Did you mean paths?

I have the latest Xcode installed. The steps I followed are from Official MongoDB documentation url.

Please help if there is a solution.

4

1 回答 1

0

我的情况不是安装 MongoDB,但在使用 Homebrew安装Vault时遇到了同样的问题。

运行后brew doctor,我的问题是过时的命令行工具。

我按照错误消息中显示的说明进行操作。

但是,第一个解决方案没有更新我的命令行工具。

$ softwareupdate --all --install --force

所以我遵循了第二个解决方案,并且能够成功安装Vault

$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install
于 2021-08-17T05:58:16.870 回答