我对MongoDB比较新,正在尝试使用Homebrew在我的Mac上安装MongoDB,但是我遇到了以下错误:
Error: No available formula with the name "mongodb"
==> Searching for a previously deleted formula (in the last
month)...
Warning: homebrew/core is shallow clone. To get complete history
run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
我运行了brew update
,然后运行brew install mongodb
$ brew install mongodb-community@5.0
目前还无法通过brew
安装。请尝试$ brew install mongodb-community@4.4
。同时确保在启动和停止 mongodb 时指定正确的版本。 - Pritam Patil