执行yii2控制台命令时报错:-bash: yii: command not found

MacOS下出现-bash: 命令: command not found的解决

1.在终端输入:vim ~/.bash_profile

2.在里面添加:export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:.

3.在:wq后,输入:source  ~/.bash_profile

猜你喜欢

转载自www.cnblogs.com/xuwenjie/p/10148321.html