当遇到以下错误时
brew install watchman
Error: The following directories are not writable by your user:
/usr/local/share/man/man8
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/man/man8
其实报错信息中已经给出提示了,先sudo chown -R $(whoami) /usr/local/*,然后在brew install ******** 就好啦