mac系统自带的PHP是5.5的,但是composer需要7.0的PHP,可以将mamp的PHP路径引入到mac变量里面 1、cat ~/.bash_profile 2、export PATH=/Applications/MAMP/bin/php/php7.0.22/bin:$PATH; 3、source ~/.bash_profile 小杰博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 转载请注明原文链接:mac添加mamp的PHP路径 喜欢 (0)