安装oh-my-zsh后,nvm命令失效 原因:~/.bash_profile文件不再执行,需要将bash 中.bash_profile 全部环境变量加入oh-my-zsh中 在终端输入命令 vi ~/.zshrc 然后编辑配置,添加以下命令 source ~/.bash_profile 最后保存并退出,在输入命令重新执行一下 source .zshrc