錯誤描述
~/Desktop brew cask list
Warning: The default Caskroom location has moved to /usr/local/Caskroom.
Please migrate your Casks to the new location and delete /opt/homebrew-cask/Caskroom,
or if you would like to keep your Caskroom at /opt/homebrew-cask/Caskroom, add the
following to your HOMEBREW_CASK_OPTS:
–caskroom=/opt/homebrew-cask/Caskroom
For more details on each of those options, see https://github.com/caskroom/homebrew-cask/issues/21913.
環境
目前系統:macOS Sierra v 10.12.1
Homebrew:1.1.7
解決過程
> brew update
> mv /opt/homebrew-cask/Caskroom /usr/local
> sudo rm -rf /opt/homebrew-cask
> brew cask reinstall --force $(brew cask list)
參考
https://github.com/caskroom/homebrew-cask/issues/21913