DEV Community

Ticha Godwill Nji
Ticha Godwill Nji

Posted on

How to install mongoDB community on macOS

In todays article, I will just quickly walk you through on how you can install mongoDB on your macOS.

There're multiple ways that you can use to install mongoDB on your system but today I will just talk about one of the methods.

Head on to the mongoDB official website at Install on macOS.

As a prerequisite, you will need to install the Homebrew package manager. Run this command on your terminal to install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After installing Homebrew package manager, run this command on your terminal to install Xcode
xcode-select --install

Tap the MongoDB Homebrew Tap to download the official Homebrew formula for MongoDB and the Database Tools, by running the following command in your macOS Terminal:
brew tap mongodb/brew

Run this command to update Homebrew
brew update

After updating Homebrew, run this command on your terminal to install MongoDB
brew install mongodb-community@7.0

Happy coding!

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay