When I run the following command in my terminal:
usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I get an error:
/usr/local/Cellar is not writable. You should change the
ownership and permissions of /usr/local/Cellar back to your
user account:
sudo chown -R $(whoami) /usr/local/Cellar
Failed during: /usr/local/bin/brew update --force
I went through similar posts on S.O and all of them had the following commands as answer,so I ran the following commands in the terminal:
sudo chown -R $tejas /usr/local/Cellar
sudo chown -R $tejas:admin /usr/local/Cellar
sudo chown -R $tejas /usr/local
sudo chown -R $tejas:admin /usr/local
I ran the installation command after all above four command but it still gives me the error. Can someone please help me fix this. Thank you.