macOS Error: `brew cask` is no longer a `brew` commandの解決方法

環境

macOS

エラーメッセージ

% brew cask install the-unarchiver

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

解決方法

 % brew install the-unarchiver --cask

書式

旧) $ brew cask install xxx

新) $ brew install xxx –cask

IT

Posted by arkgame