【问题标题】:How to uninstall twilio-cli from Mac osx using brew如何使用 brew 从 Mac osx 卸载 twilio-cli
【发布时间】:2021-04-29 16:26:38
【问题描述】:

我在 Mac 操作系统上,可以获得 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

我应用了上面建议的命令,但它仍然一遍又一遍地给出同样的错误。

【问题讨论】:

    标签: macos twilio homebrew homebrew-cask twilio-cli


    【解决方案1】:

    先试试这个

    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/

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

    那我会做brew tap twilio/brew && brew install twilio

    之后你不妨运行brew update && brew upgrade 然后brew doctor 确保一切正常

    【讨论】:

    • 感谢brew update-reset $(brew --repo twilio/brew)工作
    • 这里的 rm -rf 命令可能有错字?我的文件夹名为 homebrew-brew。
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      • 2015-01-21
      • 2014-09-27
      • 1970-01-01
      • 1970-01-01
      • 2011-12-23
      相关资源
      最近更新 更多