以下命令请在终端中运行:

PATH=/bin:/usr/bin:/usr/local/bin:$ 

export PATH

但是这样治标不治本,在命令可以使用之后,

通过open .bash_profile

把自己新加的配置删下。保存,重新打开终端