Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running into problems installing MongoDB on MacOS Terminal

I am trying to install mongoDB as a macOS service but I am running to some errors

  1. I first put in the terminal

    brew tap mongodb

Nothing really happens.

  1. But, when I run:

brew install [email protected]

I receive:

Warning: No available formula with the name "mongosh" (dependency of mongodb/brew/mongodb-community). Did you mean mongocli?

==> Searching for similarly named fo This similarly named formula was found: mongocli ✔

To install it, run: brew install mongocli ✔ It was migrated from mongodb/brew to homebrew/core.

  1. Finally, when I run

brew services start [email protected]

I receive

Error: Formula 'mongodb-community' is not installed.

Any advice?

like image 235
jamesandthegiantnectarine Avatar asked Nov 04 '25 16:11

jamesandthegiantnectarine


1 Answers

I had the same happen, however my issue was actually with this error:

fatal: could not solve HEAD to a revision

solve it using:

git -C $(brew --repository homebrew/core) checkout master

you can also:

brew update

brew upgrade

brew upgrade --cask

brew cleanup

and then restart the mongodb community edition install process again! Worked for me!

like image 90
Alyssa De Metro Avatar answered Nov 07 '25 16:11

Alyssa De Metro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!