天天看点

[Mac] 记录解决Homebrew-cask Issue #21913过程

错误描述

 ~/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

继续阅读