homebrew-cask: brew cask install returns "Error: MethodDeprecatedError"
General troubleshooting steps
- I have retried my command with
--forceand the issue is still present. - I have checked the instructions for reporting bugs (or making requests) before opening the issue.
- None of the templates was appropriate for my issue, or I’m not sure.
- [ x I ran
brew update-reset && brew updateand retried my command. - I ran
brew doctor, fixed as many issues as possible and retried my command. - I understand that if I ignore these instructions, my issue may be closed without review.
Description of issue
After the fix from #44694 I am now seeing a different error when running brew cask install <caskname> - Error: MethodDeprecatedError.
I ran the following commands:
$ export HOMEBREW_DEVELOPER=1
$ brew update
Updated Homebrew from b067700f to 254ce8bb.
No changes to formulae.
Output of your command with --verbose --debug
$ brew cask install node --debug --verbose
Error: MethodDeprecatedError
Output of brew cask doctor
$ brew cask doctor
Error: MethodDeprecatedError
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (5 by maintainers)
brew caskcommands.brew taphad the usualcaskroom/caskandhomebrew/coreBUT it also had thephinze/caskThat’s when I realized that even though Homebrew itself was up-to-date that the setup must have been very old on that El Capitan machine. I ran this command and suddenly everything worked again.
Thank you for helping me on the right track! 😗 I hope it helps the others as well.
AHA! @arakashic and @drjsanger’s advice worked. I had:
export HOMEBREW_CASK_OPTS="--appdir=/Applications --caskroom=/opt/homebrew-cask/Caskroom"…in my .bashrc. Changed that to:
export HOMEBREW_CASK_OPTS="--appdir=/Applications"I noticed that I had this problem because I was setting
HOMEBREW_CASK_OPTS=--caskroom=/opt/homebrew-cask/Caskroom. After removing it,brew caskworks fine.