Homebrew: When it fails “brew update”

I was getting this when I ran “brew update” after a long time:

antonperez-mbpro:~ anton.perez$ brew update
Checking out files: 100% (2942/2942), done.
Error: undefined method `to_sym’ for nil:NilClass
Please report this bug:
/usr/local/Library/Homebrew/cmd/update.rb:112:in `report’
/usr/local/Library/Homebrew/cmd/update.rb:110:in `each_line’
/usr/local/Library/Homebrew/cmd/update.rb:110:in `report’
/usr/local/Library/Homebrew/cmd/update.rb:26:in `update’
/usr/local/Library/brew.rb:87:in `send’

All I did was run it again and it worked.  If it doesn’t work for you, do a “brew doctor” to continue troubleshooting.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.