try using sudo to run homebrew