如何使用brew从Mac OS X卸载twilio-cli

3

我使用的是Mac os系统,并且已经安装了twilio-cli,通过brew进行安装。

我尝试了

brew uninstall twilio 
brew remove twilio

它会出现以下错误

    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

我尝试了上述建议的命令,但它仍然一遍又一遍地显示相同的错误。
2个回答

10

首先尝试:

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

然后执行以下步骤:

brew uninstall twilio

brew untap twilio/brew

brew tap twilio/brew

brew install twilio


如果以上步骤失败,可以前往目录/usr/local/Homebrew/Library/Taps/twilio/

手动删除homebrew-brew文件夹:rm -rf homebrew brew

然后执行命令brew tap twilio/brew && brew install twilio

最后运行brew update && brew upgradebrew doctor以确保一切正常。


谢谢,brew update-reset $(brew --repo twilio/brew) 已经生效。 - Aseem Jain
这里的rm -rf命令可能有错别字?我的文件夹名叫homebrew-brew。 - KingCronus

0

brew install twilio/brew/twilio 应该就足够了。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接