I had the same problem. There was no directory named., / Usr / local / Cellar, but brew found that it was already installed.
I solved the problem by doing the following.
Step 1: Run
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
(An error was reported and did not succeed., But I believe he did the cleanup)
Step 2: to be from the Windows world., Restart the terminal
Step 3: Run Again
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
It worked successfully.,
source share