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!
Top comments (0)