There is no Cellar file in my usr/local dir for brew
Before run any brew command do these steps:
1- $ brew update
2- brew doctor
3- If brew doctor shows the warning or error, just fix them , it also shows the solution and the command that you need so copy & paste the command & run it, that's simple
4- install what you need, for example node :
brew install node
I solved it by creating the /usr/local/Cellar directory (and any other directories it may require) by hand and owning them.
sudo mkdir /usr/local/Cellar
sudo chown -R $(whoami) /usr/local/Cellar
Then rerun your command.