How to uninstall twilio-cli from Mac osx using brew

987 Views Asked by At

I am on Mac os and could get twilio-cli. I have installed it using brew.

I tried

brew uninstall twilio 
brew remove twilio

It gives below error

    Warning: Twilio is switching the default branch from 'master' to 'main'
    Warning: requiring an update to the default homebrew tap.
    Warning: 
    Error: To upgrade twilio-cli, retap it with:
        brew untap twilio/brew
        brew tap twilio/brew
        brew upgrade twilio

I applied above suggested commands but it still give same error over and over again.

2

There are 2 best solutions below

0
On

brew install twilio/brew/twilio should be enough.

2
On

Try this first

brew update-reset $(brew --repo twilio/brew)

Then try

brew uninstall twilio

brew untap twilio/brew

brew tap twilio/brew

brew install twilio


If that fails, then I would go to the folder /usr/local/Homebrew/Library/Taps/twilio/

and manually delete the hombrew-brew folder rm -rf homebrew brew

Then I would do brew tap twilio/brew && brew install twilio

After that you might as well run brew update && brew upgrade then brew doctor to make sure everything is good