如果没有了,就upgrade下PHP吧,比如之前安装的是php7.3,则执行如下命令: brew upgrade php@7.3 就可以了。 在执行该命令前,建议先清理下brew的缓存 brew cleanup