Lui*_*lva 0 git error-handling bash installation homebrew
我正在尝试在 macOS 上安装自制软件,但失败并显示以下消息:
h
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
fatal: not in a git directory
Failed during: git config --replace-all homebrew.analyticsmessage true
Run Code Online (Sandbox Code Playgroud)
关于它可能是什么以及如何解决它的任何想法?非常感谢 (:
小智 5
sudo rm -rf /usr/local/Homebrew
Run Code Online (Sandbox Code Playgroud)
在你降落这里之前清除所有的狗屎;)然后运行
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Run Code Online (Sandbox Code Playgroud)
我希望它有帮助。
您可以运行以下命令看看是否有帮助?
$ cd `brew --prefix`
$ git remote add origin https://github.com/Homebrew/homebrew.git
$ git fetch origin
$ git reset --hard origin/master
$ brew update
Already up-to-date.
Run Code Online (Sandbox Code Playgroud)
如果您可以在原始帖子中附加brew doctor
和 ,也会很有帮助。brew config
谢谢!
归档时间: |
|
查看次数: |
1696 次 |
最近记录: |