gpt4 book ai didi

mongodb - 使用 Homebrew 安装 MongoDB

转载 作者:行者123 更新时间:2023-12-01 17:44:17 25 4
gpt4 key购买 nike

我对 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 更新然后brew 安装 mongodb

最佳答案

公式 mongodb 已从 homebrew-core 中删除。检查pr-43770来自 Homebrew 核心

To our users: if you came here because mongodb stopped working for you, we have removed it from the Homebrew core formulas since it was migrated to a non open-source license.

幸运的是,mongodb 团队正在维护一个自定义的 Homebrew Tap。您可以卸载旧的 mongodb,然后从新的水龙头重新安装新的 mongodb。

# If you still have the old mongodb installed from homebrew-core
brew services stop mongodb
brew uninstall homebrew/core/mongodb

# Use the migrated distribution from custom tap
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community

检查mongodb/homebrew-brew了解更多信息。

关于mongodb - 使用 Homebrew 安装 MongoDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57856809/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com