Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)

I'm relatively new to MongoDB and am trying to install MongoDB on my Mac with Homebrew, but I'm getting the following error:

Error: No available formula with the name "mongodb" 

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

I ran brew update Then brew install mongodb

1 Answer

0 votes
by (107k points)
edited by

Formula mongodb has been removed from homebrew-core. 

Luckily, the team of mongodb is managing a custom Homebrew tap. You can just simply uninstall the former mongodb and reinstall the new one from the new tap.

brew services stop mongodb

brew uninstall mongodb

brew tap mongodb/brew

brew install mongodb-community

brew services start mongodb-community

For more information regarding the same, refer the following link:

https://github.com/mongodb/homebrew-brew

Want to learn MongoDB from the experts, Check out this MongoDB Course in Sydney to enhance your Knowledge!

Related questions

0 votes
1 answer
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
asked Mar 15, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer
asked Feb 19, 2020 in Web Technology by ashely (50.2k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...