在Mac中安装mongo shell

时间:2019-10-22 12:57:29

标签: mongodb macos shell homebrew

我只想在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$ 

1 个答案:

答案 0 :(得分:3)

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

brew tap mongodb/brew

然后,安装外壳:

brew install mongodb-community-shell