zsh: command not found:

情景

  1. 安装完zsh(Mac自带)

  2. 安装完oh-my-zsh

  3. 准备开动,试试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:’

你可能感兴趣的:(zsh: command not found:)