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.
Try this first
brew update-reset $(brew --repo twilio/brew)Then try
brew uninstall twiliobrew untap twilio/brewbrew tap twilio/brewbrew install twilioIf 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 brewThen I would do
brew tap twilio/brew && brew install twilioAfter that you might as well run
brew update && brew upgradethenbrew doctorto make sure everything is good