执行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

posted @ 2018-12-20 11:27  徐姐  阅读(2006)  评论(0编辑  收藏  举报