Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)

On my mac, I have installed the mongoDB(version 2.0.2) using Homebrew. I want to use 'aggregate' function but it is only available from version 2.2 so for that I update the mongoDB using the following code:

 brew upgrade mongodb

But I get the following error:

Error: mongodb already upgraded

How can I install the latest version of MongoDB?

1 Answer

0 votes
by (107k points)
edited by

First of all, you have to update your Homebrew to the current version with the help of the following command:

brew update

After that you will have to update the MongoDB:

Do you want to be a full-stack developer? Enroll in this Full Stack Certification to get started with your journey.

brew upgrade mongodb

Related questions

0 votes
1 answer
asked Jan 5, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer
0 votes
2 answers
asked Oct 16, 2019 in Web Technology by Sammy (47.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...