Skip to content

Instantly share code, notes, and snippets.

@muumin
Created May 20, 2019 07:34
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muumin/0f335739cc0a06a0decc004141a6b4e8 to your computer and use it in GitHub Desktop.
Save muumin/0f335739cc0a06a0decc004141a6b4e8 to your computer and use it in GitHub Desktop.

以下のエラーで削除も更新も出来ない場合

Error: Cask 'eclipse-jee' definition is invalid: invalid 'depends_on macos' value: ":leopard"

以下を実行する

/usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/sed -i '' '/depends_on macos:/d'
@luisgerhorst
Copy link

I also had the problem hinted on in the first line (I don't understand the description) and the second line solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment