【问题标题】:Install mongo shell in mac在 mac 中安装 mongo shell
【发布时间】:2020-02-18 15:20:19
【问题描述】:

我只想在我的 mac 中安装 mongo-shell

我跑了brew update 然后我跑了brew install mongodb-org-shell .. 但它没有安装。以下是错误信息


bash-3.2$ brew install mongodb-org-shell 
Error: No available formula with the name "mongodb-org-shell" 
==> 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.
bash-3.2$ 

【问题讨论】:

    标签: mongodb macos shell homebrew


    【解决方案1】:

    根据我在MongoDB HomeBrew 上找到的内容,仅安装您应该使用的 Mongo Shell:

    brew tap mongodb/brew
    

    之后,安装外壳:

    brew install mongodb-community-shell
    

    【讨论】:

      【解决方案2】:

      您可能想改用install mongosh (MongoDB Shell)。自 MongoDB v5.0 以来,旧的 mongo shell 一直是 deprecated,并被 mongosh 取代。请参考this answer

      【讨论】:

        猜你喜欢
        • 2017-06-19
        • 2016-10-07
        • 2018-12-04
        • 2016-12-22
        • 2022-10-13
        • 1970-01-01
        • 2013-04-29
        • 1970-01-01
        • 2014-08-10
        相关资源
        最近更新 更多