檢測目前hombrew是否有問題
To check if there is problem in current brew.
$ brew doctor
結果如下
Here's the result
homebrew會很貼心的告訴我們有什麼問題, 以及該怎麼解決問題
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 !!!
沒有留言:
張貼留言