Error: An exception occurred within a child process: Errno::EPERM: Operation not permitted @ dir_s_mkdir - /usr/local/Cellar
brew에서 오류가 났을때 brew doctor 라고 실행하면 대부분의 오류에 대한 처방을 해준다.
그래 이렇게 하라고?
sudo mkdir -p /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/Cellar sudo chown -R $(whoami) /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/Cellar
해결.