mongodbmacoshomebrew

Installing mongodb on M1 Apple Chip with cannot tap mongodb/brew: invalid syntax in tap


Running the command brew tap mongodb/brew: i ran into the following. I ran into the following :

Error: Invalid formula: /opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongocli.rb

formulae require at least a URL

Error: Cannot tap mongodb/brew: invalid syntax in tap!


Solution

  • My Solution :

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    

    After it completes close the terminal and uncheck "Open using Rosetta".

    This did not work for me so i tried this:

    I suggest you find the one that works for you. Thanks to these articles.