0

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/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.

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

jm3
  • 1,986
  • 2
  • 17
  • 21
User1789
  • 31
  • 2
  • 8
  • Does this answer your question? [Installing MongoDB with Homebrew](https://stackoverflow.com/questions/57856809/installing-mongodb-with-homebrew) – Simba Jan 11 '20 at 01:30

1 Answers1

2

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 mongodb-community@4.2 as shown in the guides.

Hope this helps!

DevKyle
  • 1,091
  • 6
  • 22