默认的Caskroom位置已经移动到/usr/local/Caskroom



当我尝试安装新桶时,出现消息:

"默认的Caskroom位置已移动到/usr/local/Caskroom"

如何移动旧目录而不破坏到新位置的链接?

配方

# FIRST SOLUTION
# reinstall all casks (can be slow)
brew cask install --force $(brew cask list)
# --------------------------------------
# SECOND SOLUTION
# move cask directory to its new location
mv /opt/homebrew-cask/Caskroom /usr/local
# relink existing casks to the new location
for f in ~/Applications/*.app; do oldloc="$(readlink "$f")"; [[ -e $oldloc ]] || ln -sf "/usr/local${oldloc#/opt/homebrew-cask}" "$f"; done

查看更多信息:https://github.com/caskroom/homebrew-cask/issues/21913

我有同样的问题,我做了以下修复它。

1。

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

2。

MBP:~$ brew install terraform
==> Downloading https://homebrew.bintray.com/bottles/terraform-0.7.5.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring terraform-0.7.5.el_capitan.bottle.tar.gz
==> Caveats
zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/terraform/0.7.5: 4 files, 123.3M

最新更新