Mat*_*pow 4 macos homebrew homebrew-cask
我刚刚安装了最新的 Homebrew,版本为 Homebrew 2.7.3。我在 Mac 操作系统上预安装了 git,我尝试安装brew install git-crypt&brew install git-gui并收到致命错误:无法将 HEAD 解析为修订版本。看起来任何包都失败了。
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "git-crypt".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Run Code Online (Sandbox Code Playgroud)
我尝试使用命令行卸载然后重新安装自制程序:https ://github.com/homebrew/install#uninstall-homebrew
通过运行brew doctor,我收到一些警告:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master
Run Code Online (Sandbox Code Playgroud)
我检查了这个目录
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
Run Code Online (Sandbox Code Playgroud)
并意识到没有 Formula 文件夹。
任何帮助将不胜感激。
小智 12
我遇到了这个错误并解决了
git -C $(brew --repo homebrew/core) checkout master
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5319 次 |
| 最近记录: |