安裝完zsh
(Mac自帶)node
安裝完oh-my-zsh
vim
準備開動,試試node
吧bash
node -v zsh: command not found: node //???我不是裝了node嗎?
source ~/.bash_profile node -v v8.1.2 //彷佛好了,開個新終端再試試 //new terminal node -v zsh: command not found: node //???剛纔不是好了嗎?
vim ~/.zshrc //在最後一行加入: source .bash_profile //byebye ‘zsh: command not found:’