Some homebrew formulas broken after migration
Had the same problem, what I did was i run

brew list -1 &gt; brew.txt # list out all installed packages
brew list -1 | xargs brew rm --force # remove all installed packages
brew install $(cat brew.txt | tr '\n' ' ') # install all previously installed packages


If everything went fine, remove the package list by:

rm brew.txt


You should probably check potential warnings as well.