'MongoDB won't install on my mac. I installed homebrew in order to install Mongodb but I'm getting some error messages

I used the following command to install mongodb:

my-MBP:~ user$ brew install mongodb:

and this was the output

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/[email protected]
mongodb/brew/mongodb-community-shell           mongodb/brew/[email protected]
mongodb/brew/[email protected]             mongodb/brew/[email protected]
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.

This same thing happens why i try to enter "brew install mongo." Is homebrew not installed properly? How specifically can I resolve this issue?**



Solution 1:[1]

I would follow the official installation guide, if you haven't already done so: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/ https://github.com/mongodb/homebrew-brew

To install with brew, you must first:

brew tap mongodb/brew

Then,

brew install <mongodb>

For the input, mongodb doens't appear to be an option. It should be something like [email protected] as shown in the guides.

Hope this helps!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DevKyle