我使用以下命令安装mongodb:
my-MBP:~ user$ brew install mongodb:
这是输出
Error: No available formula with the name "mongodb"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
These similarly named formulae were found:
mongodb/brew/mongodb-community mongodb/brew/mongodb-community@3.4
mongodb/brew/mongodb-community-shell mongodb/brew/mongodb-community@3.6
mongodb/brew/mongodb-community@3.2 mongodb/brew/mongodb-community@4.0
To install one of them, run (for example):
brew install mongodb/brew/mongodb-community
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
同样的事情也发生在我尝试输入"brew install mongo“的原因。是否未正确安装自制软件?具体如何解决这个问题?**
发布于 2020-01-10 10:04:01
我将遵循官方安装指南,如果您还没有这样做的话:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/ https://github.com/mongodb/homebrew-brew
要使用brew进行安装,您必须首先:
brew tap mongodb/brew
然后,
brew install <mongodb>
对于输入,mongodb
似乎不是一个选项。它应该类似于指南中所示的mongodb-community@4.2
。
希望这能有所帮助!
https://stackoverflow.com/questions/59674532
复制相似问题