I got the error "Calling brew cask install is disabled!"

I used cask when I wanted to install an app with GUI with homebrew, but now I get an error.

The brew cask command is -Deprecated from ** 2.6 ** -It seems that it has been disabled since ** 2.7 **. -It seems that the error message will not be displayed from ** 2.8 **.

My environment was 2.7.1.

brew --version
Homebrew 2.7.1
Homebrew/homebrew-core (git revision 30e7e; last commit 2020-12-31)
Homebrew/homebrew-cask (git revision 88964b; last commit 2020-12-31)

Solutions

You can do this by changing brew cask install ~ to brew install --cask ~.

When I check the error properly, ... Error: Calling brew cask install is disabled! Use brew install [--cask] instead.

It was written properly after the content of the error. brew cask install is invalid. To use --cask.

Recommended Posts

I got the error "Calling brew cask install is disabled!"
"This is the wrong package! Please install eslint-plugin-jsx-a11y" error
I got an error! * There is no interactive request template
I don't see an error in Rails bundle install ... the solution
When I pushed to Docker Hub, I got requested access to the resource is denied