install
install copied to clipboard
If cloning the homebrew/core taps fails (like for a flaky network connection), `install.sh` will appear to succeed but `brew install` will fail
- [x] your problem was from running the official
install
oruninstall
script? - [x] after installation: ran
brew config
andbrew doctor
and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?
What you were trying to do (and why)
Install Homebrew using the official script.
What happened (include command output)
- I interrupted the script while cloning the homebrew-core tap (or my Internet connection was interrupted).
- I reran the script and it succeeded.
- I tried to install a formula in the core tap and it failed.
brew install homebrew/core/git
~ brew install homebrew/core/git Warning: No available formula or cask with the name "homebrew/core/git". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found.
What you expected to happen
I would've expected the second attempt to run install.sh
to correct the problem or to abort with an error like the one that brew doctor
displays:
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Step-by-step reproduction instructions (by running brew
commands)
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Press
Ctrl
C
while it is tapping homebrew/core -
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
brew install homebrew/core/git