我是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
配方mongodb
已从自制软件核心中删除。从Homebrew -Core 检查PR-43770
给我们的用户:如果您由于mongodb停止为您工作而来到这里,则由于它已迁移到非开源许可证,因此已将其从Homebrew核心公式中删除。
幸运的是,mongodb团队正在维护自定义的Homebrew水龙头。您可以卸载旧的mongodb,然后从新的水龙头重新安装新的mongodb。
brew services stop mongodb
brew uninstall mongodb
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community
检查mongodb / homebrew-brew以获取更多信息。