mac下安装php-version报错
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
进入你要放置php-version的目录。
git clone https://github.com/wilmoore/php-version.git
source php-version/php-version.sh
php-version 完成
原作者:https://www.cnblogs.com/rxbook/p/10170439.html