MacOS – Powershell install keeps asking for a password

command linehomebrewmacosopen sourcepassword

I'm trying to upgrade my version of powershell to the latest version 7.0.1 using brew. The install seems to be stuck on disabling some ruby gems and is constantly asking over and over again for my password. I've tried uninstalling as well and I get the same password loop over and over again. I know I'm putting in the correct password as when I intensionally put in the wrong password I get the sorry message before it asks for my password again.

I'm a bit stumped as this point on what else to try besides removing the two folders that contain the powershell files.

How can I correctly uninstall powershell that was installed using brew if the uninstaller won't work?

Best Answer

The best step right now would be to uninstall and reinstall Homebrew. Sometimes Homebrew can be damaged and uninstalling and reinstalling it from the system will fix that.