philcook / brew-php-switcher

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: No available formula with the name "brew-php-switcher"

phoenixg opened this issue · comments

commented
→ brew install brew-php-switcher
Error: No available formula with the name "brew-php-switcher"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

Then I tried:

→ git -C "$(brew --repo homebrew/core)" fetch --unshallow
fatal: dumb http transport does not support shallow capabilities

https://github.com/Homebrew/homebrew-core/blob/master/Formula/brew-php-switcher.rb

The formula definitely exists.
I’d double check your Homebrew installation. Perhaps try running brew doctor.

commented
→ brew doctor
Your system is ready to brew.
commented

After I run brew update, then the formula can be installed.