Search code examples
macosterminalhomebrewzshiterm2

Error: `brew cask` Is No Longer When "brew cask install iterm2" Command Is Run


I want to configure my macOs terminal with zsh. After installing homebrew, when I am trying to install iterm2 running this command brew cask install iterm2, the error shows as like below:

Error: brew cask is no longer a brew command. Use brew <command> --cask instead.

May anyone suggest to solve it? Thanks in advance!


Solution

  • The following command should solve your problem

    brew install --cask iterm2