WX20180711-141039@2x

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
rust

Error: No available formula with the name “php-version”
==> Searching for a previously deleted formula (in the last month)…
Error: No previously deleted formula found.
==> Searching for similarly named formulae…
Error: No similarly named formulae found.
==> Searching taps…
==> Searching taps on GitHub…
Error: No formulae found in taps.

试了很多方法,更新了brew 最后通过brew还是无法安装成功。直接从git上clone下来使用了。

https://github.com/wilmoore/php-version/wiki/Troubleshooting#gathering-debug-info

  1. 进入你要放置php-version的目录。
  2. git clone https://github.com/wilmoore/php-version.git
  3. source php-version/php-version.sh
  4. php-version 完成

测试:

WX20180711-141431@2x

作者:dayello