无法冲泡卸载

Can not brew uninstall

我是社区的新手,我刚刚开始学习如何编码。因此,我首先尝试将 Homebrew 软件包的安装路径更改为我的外部磁盘 (Llyne DExt),但失败了。所以现在我不能 brew uninstall 因为我得到这个:

MacBook-Pro-de-Llyne:Llyne DExt llyne$ pwd
/Volumes/Llyne DExt
MacBook-Pro-de-Llyne:Llyne DExt llyne$ brew doctor
Your system is ready to brew.
MacBook-Pro-de-Llyne:Llyne DExt llyne$ brew uninstall
Usage: brew uninstall, remove, rm [options] installed_formula|installed_cask
[...]

Uninstall a formula or cask.

  -f, --force                      Delete all installed versions of formula.
                                   Uninstall even if cask is not installed,
                                   overwrite existing files and ignore errors
                                   when removing files.
      --zap                        Remove all files associated with a cask.
                                   May remove files which are shared between
                                   applications.
      --ignore-dependencies        Don't fail uninstall, even if formula is a
                                   dependency of any installed formulae.
      --formula, --formulae        Treat all named arguments as formulae.
      --cask, --casks              Treat all named arguments as casks.
  -d, --debug                      Display any debugging information.
  -q, --quiet                      Make some output more quiet.
  -v, --verbose                    Make some output more verbose.
  -h, --help                       Show this message.

Error: Invalid usage: This command requires at least 1 installed formula or installed cask argument.

在此先感谢您!

您要卸载 Brew 吗?试试这个

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"