Install brew using the -- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew tap mongodb/brew brew install mongodb-community@5.0