项目需要切换一下7.2版本 vim ~/.bash_profile export PATH=/usr/local/Cellar/php@7.2/7.2.15/bin:$PATH source ~/.bash_profile