I run this:
/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"
I get prompt:
You are getting permission denied when downloading the files into /usr/local.
/usr/local
This folder often belongs to root. This is a known issue with brew. Fix it by doing
sudo chown -R $(whoami) $(brew --prefix)/*
and then re-run the installer.