brew error code example
Example 1: brew error
brew update-reset
Example 2: Error: No available formula with the name "mongodb"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update-reset
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"