Homebrew is a package manager for Mac (also known as the missing package manager for macOS) and is easy to install. Go to the official website (https://brew.sh), and there you will find a command that you should run to install it, which is as follows:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- If you have Homebrew already installed, or if you just installed it, then the first thing you need to do is to update the package database with this command:
brew update
- Now we need to install MongoDB using this command:
brew install mongodb
- If you want to install the latest development version of MongoDB, then you should ...