安装oh-my-zsh后,安装vue等在命令行输入显示command not found问题,解决方法如下:
首先讲一下问题原因:zsh的配置文件.zshrc 没有配置相关环境变量设置
1、需要将bash 中.bash_profile 环境变量加入zshrc
open .zshrc
2、下拉找到# User configuration部分,在下面添加
source ~/.bash_profile
3、执行下面命令后,问题解决。
source .zshrc
安装oh-my-zsh后,安装vue等在命令行输入显示command not found问题,解决方法如下:
首先讲一下问题原因:zsh的配置文件.zshrc 没有配置相关环境变量设置
1、需要将bash 中.bash_profile 环境变量加入zshrc
open .zshrc
2、下拉找到# User configuration部分,在下面添加
source ~/.bash_profile
3、执行下面命令后,问题解决。
source .zshrc
本文标题:解决Mac安装oh-my-zsh后出现 command not
本文链接:https://www.haomeiwen.com/subject/cgrrictx.html
网友评论