I run this:
/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"
I get prompt:
I could get it working with
sudo chown -R $USER /usr/local
thanks to @joran for suggesting this in comments