Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mingliangguo/6a5349575edeb39745a5 to your computer and use it in GitHub Desktop.
Save mingliangguo/6a5349575edeb39745a5 to your computer and use it in GitHub Desktop.
brew clean up recipe
Error: Failed to update tap: caskroom/versions
brew untap caskroom/cask
brew update
brew cleanup --force -s
rm -rf "$(brew --cache)"
brew tap caskroom/cask
This removed what I believe is a unnecessary single quote in the rm command and a period that was probably not intended after the last command
Also in my case, I needed to add sudo for the remove command
sudo rm -rf "$(brew --cache)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment