如何解决Homebrew的"无可用公式"警告

ogi*_*inc 3 php homebrew macos-high-sierra

当我开始一个新的终端会议时,我会继续

Error: No available formula with the name "homebrew/php/php56"
Please tap it and then try again: brew tap homebrew/php
Run Code Online (Sandbox Code Playgroud)

警告.我试过brew tap homebrew/php但得到了

Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
Run Code Online (Sandbox Code Playgroud)

此外,试图brew doctor,brew cleanup,brew update- brew upgrade但没有运气.有没有人能解决这个恼人的警告?

Mik*_*tma 11

在配置文件中查找你的shell( ~/.bash_profile,~/.zshrc或类似),并删除有问题的项目.

在我的情况下,我仍然在我的export PATH行中引用它.$(brew --prefix homebrew/php/php56)/bin从该行删除应该在启动时清除这些警告.