2016/09/21

[macOS] 系統更新至 Sierra 後 Homebrew 權限不足問題解決方法

今早 macOS 已經開放下載更新,當然我也不會落後!



更新系統後,在執行例行公事 Homebrew 檢查,出現沒有權限





Warning: /usr/local is not writable.

You should change the ownership and permissions of /usr/local
back to your user account.
  sudo chown -R $(whoami) /usr/local


跟著訊息走,給予適當權限就成功囉!

sudo chown -R $(whoami) /usr/local


結束更新後,Homebrew 又通知再把權限復原 (這次自己歸位分離管理~好事!)



sudo chown root:wheel /usr/local


DONE! 來去跟 Siri 聊聊天好了~


沒有留言: