dart 致命错误:找不到远程引用refs/heads/master

o7jaxewo  于 2023-02-27  发布在  其他
关注(0)|答案(1)|浏览(530)

我正在尝试安装自制程序。但是,发生了以下错误。

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

我试过逃跑

brew tap --repair

但结果是zsh: command not found: brew有人知道怎么修吗?😭

oalqel3c

oalqel3c1#

尝试brew update-reset,如果不起作用,可以粘贴brew doctor输出吗?

相关问题