brew Error: Could not create /usr/local/Cellar

[text] : http://blog.anbig.com/2017/11/18/brew-error-could-not-create-usrlocalcellar/
The BREW installation software cannot be used after the MAC upgrade to 10.13

The solution
Sudo mkdir/usr/local/Cellar
sudo chmod a+w /usr/local/Cellar
Sudo mkdir/usr/local/opt
sudo chmod a+w /usr/local/opt
Then install it again.

Read More: