- Fix the Brew first but running this command:
Code:sudo chown -R $(whoami) $(brew --prefix)/*
- Tap the new Mongo repo:
Code:brew tap mongodb/brew
- Install MongoDB:
Code:brew install mongodb-community
- Check the brew services:
Code:brew services list
- Start the service if it’s not started or anyway:
Code:brew services start mongodb-community
- Done!