美文网首页
Mac zsh: command not found zsh 所

Mac zsh: command not found zsh 所

作者: wodeph | 来源:发表于2021-05-13 11:52 被阅读0次

handy@handydeMac-mini 20210512 % create-react-app react-study-template

zsh: command not found: create-react-app

handy@handydeMac-mini 20210512 % npm install -g create-react-app

zsh: command not found: npm

handy@handydeMac-mini 20210512 % vi ~/.bash_profile

zsh: command not found: vi

handy@handydeMac-mini 20210512 % vi ~/.bash_profile

zsh: command not found: vi

handy@handydeMac-mini 20210512 % open .bash_profile

zsh: command not found: open

以下命令请在终端中运行:

PATH=/bin:/usr/bin:/usr/local/bin:${PATH} 

export PATH

但是这样治标不治本,在命令可以使用之后,

通过open .bash_profile

把上面设置添加到文件末尾,编辑保存后,别忘了

如果出现    .bash_profile does not exist. 请新建一个终端见面 ,重复上面两个操作

source .bash_profile

然后关掉终端,再次打开命令就都可以使用了

相关文章

网友评论

      本文标题:Mac zsh: command not found zsh 所

      本文链接:https://www.haomeiwen.com/subject/xjitjltx.html