0

I can't find any solution on the Google.

wanglangdeMacBook-Pro:Cellar wanglang$ brew install mongodb

Error: mongodb: unknown version :mountain_lion

Thx!

W.lang
  • 3
  • 2

1 Answers1

-1

Your machine is toooooooo old ;)

Homebrew only support the latest version of macOS (macOS 10.12 Mojave) and support the previous 3 generation (macOS 10.9-10.11) on a "best-effort" basis.

My recommendation is that you should upgrade your machine to the latest macOS Mojave.

jackieyang
  • 730
  • 4
  • 6
  • Thx! But actually the version of my mac is 10.12.6 Sierra, I don't know why it told me the version is mountain_lion... So is it still necessary to update? I'm kinda afraid of some unknown issues... – W.lang Feb 28 '19 at 06:27
  • Sorry. Can you check if `brew update` and then `brew install mongodb` will solve your issue? – jackieyang Mar 01 '19 at 03:46
  • Problem solved! THANKS! – W.lang Mar 02 '19 at 06:34
  • @W.lang how did you solve it, because I am facing the same issue. Brew is up to date but I get the same error. – David Essien Sep 13 '19 at 15:45
  • @DavidEssien What version of macOS are you using? and what is your `brew update` output? Also try run `brew doctor`. – jackieyang Sep 15 '19 at 05:51