I'm trying to install MongoDB server on macOS Big Sur using brew, I'm following the documentation on the official mongo website.
I run the following command:
brew tap mongodb/brew
after that, I run:
brew install [email protected]
but I got the following error:
Error: No similarly named formulae found.
Error: No available formula with the name "mongosh" (dependency of mongodb/brew/mongodb-community).
It was migrated from mongodb/brew to homebrew/core.
Open the Terminal app and type brew update . Run the Mongo daemon, in one of your terminal windows run mongod . This should start the Mongo server.
As the error message shows, you need to first install mongosh
(https://github.com/mongodb-js/mongosh#readme).
Steps:
brew update
brew install mongosh
brew install mongodb-community
.Should fix your problem.
Steps:
brew untap mongodb/brew
brew tap mongodb/brew
brew install mongodb-community
fix my problem.
For me homebrew-core
was not tapped properly.
brew doctor
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master
We need to remove and tap homebrew/core again.
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
After this we need to tap mongodb/brew
brew tap mongodb/brew
And then install mongodb-community
brew install mongodb-community
It worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With