To check if there is problem in current brew.
$ brew doctor
Here's the result
brew will tell you what is the problem now, and how to solve it.
Here we got the warning message:
Warning: /Users/james.jmart/Library/Caches/Homebrew isn't writable.
The following is the solution suggest by brew:
sudo chown -R $(whoami) /Users/james.jmart/Library/Caches/Homebrew
So, execute the command offered by brew above.
我們在執行完上述指令後, 再執行一次brew doctor檢驗看看
After execute the command, we check brew again by using brew doctor
Cool, Done !!!