当我开始新的终端会话时,我一直在
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
但没有运气。有没有人能解决这个恼人的警告?
答案 0 :(得分:9)
查看shell的配置文件(~/.bash_profile
,~/.zshrc
或类似内容)并删除有问题的项目。
在我的情况下,我仍然在我的export PATH
行中引用了它。从该行中删除$(brew --prefix homebrew/php/php56)/bin
应该在启动时清除这些警告。
答案 1 :(得分:2)
您可以尝试
$ brew install php72