Warning: No available formula with the name "[email protected]"
Asked Answered
P

1

7

Trying to install mongodb server on my mac using Brew but getting this error. enter image description here

Updated my brew to latest version, still getting this error. Command i used: brew install [email protected]

Proximate answered 23/12, 2022 at 14:28 Comment(1)
This one? #73082208Lancashire
P
12

I figured it out myself. Here is the solution which I found out. I am using mac os on intel processor.

I first run

rm -fr $(brew --repo homebrew/core)

then

brew tap homebrew/core

then

brew tap mongodb/brew

then installed it

brew install [email protected]

This worked for me.

Proximate answered 24/12, 2022 at 10:35 Comment(2)
Thank you for this answer. I've been trying to install mongodb for over a month now, but all the tutorials I found were for earlier versions and required me to create a /data/db directory which is no longer allowed in current versions of macOS. I only had to run brew tap mongodb/brew and the install command though, without needing to delete the homebrew/core directory.Hjerpe
For the latest version please check the MongoDB website and change the [email protected] to whatever latest version and replace 6.0 with the latest version number for e.g 6.2 or 6.2 ...Proximate

© 2022 - 2024 — McMap. All rights reserved.