I want to install neovim but I'm getting the following error:
Permission denied @ dir_s_mkdir - /usr/local/share
How can I fix this?
Recommended solution:
$ sudo install -d -o $(whoami) -g admin /usr/local/share
A not-so-elegant solution to give permission:
$ sudo chown -R $(whoami) $(brew --prefix)/*