Trying to install mongodb server on my mac using Brew but getting this error.
Updated my brew to latest version, still getting this error.
Command i used:
brew install mongodb-community@6.0
I figured it out myself. Here is the solution which I found out. I am using mac os on intel processor.
I first run
rm -fr $(brew --repo homebrew/core)
then
brew tap homebrew/core
then
brew tap mongodb/brew
then installed it
brew install mongodb-community@6.0
This worked for me.