当我开始一个新的终端会话时,我不断得到
Error: No available formula with the name "homebrew/php/php56"
Please tap it and then try again: brew tap homebrew/php
警告。我试过brew tap homebrew/php
但得到了
Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
另外,尝试了brew doctor
,brew cleanup
,brew update
和brew upgrade
但没有运气。有没有人能解决这个烦人的警告?
查看 shell 的配置文件(~/.bash_profile
、~/.zshrc
或类似文件(并删除有问题的项目。
就我而言,我仍然在export PATH
行中引用了它。从该行中删除$(brew --prefix homebrew/php/php56)/bin
应该会在启动时清除这些警告。
你可以试试
$ brew install php72