I'm using OS Catalina atm. I am trying to install Node and Homebrew but I can't seem to install anything because it keeps on saying I don't have permission in /usr/local/
Installing homebrew gives me
chmod: Unable to change file mode on /usr/local/share/zsh: Operation not permitted
chmod: Unable to change file mode on /usr/local/share/zsh/site-functions: Operation not permitted
Failed during: /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
I tried changing permissions via sudo chown -R $(whoami) /usr/local/*
but I keep on getting Operation not permitted
Some people suggested to reinstall homebrew but I can't do it because of the permissions so I am just running in circles. I can't install anything too like Virtual env or any other apps.
Please help!!!
I also tried reinstall my mac os but still no luck :(
ls -lR /usr/local
You possibly have a mixed up system after changes/ – mmmmmm Oct 17 '20 at 15:37