Brew Update issue - "delete the path and run brew update"

Whenever I try to update Homebrew with “brew update” it gives me the message:

Error: Could not link:
/usr/local/share/doc/homebrew

Please delete these paths and run brew update.

Can someone help on how to delete the path? Thanks.
I am running Homebrew on El-Capitan.

2 Likes

rm -rf /usr/local/share/doc/homebrew will delete them.

3 Likes

hi, i have met the same problem, but i can’t get why need to delete the path?

Because you have files there already that we don’t overwrite automatically in case they are important.

2 Likes

Thanks, I removed and again installed and it worked.

Any sense in adding this information to the message to the upgrader?

Thanks, it worked for me.