情景
安装完
zsh
(Mac自带)安装完
oh-my-zsh
准备开动,试试
node
吧
node -v
zsh: command not found: node //???我不是装了node吗?
Fix
source ~/.bash_profile
node -v
v8.1.2 //似乎好了,开个新终端再试试
//new terminal
node -v
zsh: command not found: node //???刚才不是好了吗?
Real fix
vim ~/.zshrc //在最后一行加入:
source .bash_profile //byebye ‘zsh: command not found:’