When I was trying to install a package with brew, this error message shows up:
Error: undefined method `min_named' for #<Homebrew::CLI::Parser:0x00007ff950288790>
Please report this bug:
https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:91:in `block in install_args'
/usr/local/Homebrew/Library/Homebrew/cli/parser.rb:51:in `instance_eval'
/usr/local/Homebrew/Library/Homebrew/cli/parser.rb:51:in `initialize'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:17:in `new'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:17:in `install_args'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:96:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:103:in `<main>'
And when I try to install other packages the same result was shown.
When I run brew doctor the result is:Your system is ready to brew.
Does anyone know what's wrong with my computer or how to fix this?