brew upgrade yarn
给了我xcode错误。我不再需要xcode并希望将其完全删除。
我按照以下步骤卸载了xcode:How to Completely Uninstall Xcode and Clear All Settings
$ brew upgrade yarn
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
==> Upgrading 1 outdated package:
yarn 1.13.0 -> 1.16.0
==> Upgrading yarn
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: An exception occurred within a child process:
CompilerSelectionError: yarn cannot be built with any available compilers.
Install GNU's GCC:
brew install gcc
我不想将路径切换到Xcode.app
,因为我不需要/使用Xcode。我需要所有Xcode的剩余物都消失了,并且需要升级Yarn。