I am trying to install Homebrew. However, the following error happened.
fatal: couldn't find remote ref refs/heads/master
Error: Fetching /opt/homebrew/Library/Taps/dart-lang/homebrew-dart failed!
Error: Some taps failed to update! The following taps can not read their remote branches:
dart-lang/dart
This is happening because the remote branch was renamed or deleted.
Reset taps to point to the correct remote branches by running 'brew tap --repair'
Failed during: /opt/homebrew/bin/brew update --force --quiet
I have tried to run
brew tap --repair
but it turned out that zsh: command not found: brew
Does anyone know how to fix it?