学无先后,达者为师

网站首页 编程语言 正文

zsh: command not found:快速的解决方法

作者:不想上班的小迷弟 更新时间: 2022-04-14 编程语言

zsh: command not found:brew
按照网上千篇一律的修改文件后,依然无效,我放弃 ,决定手动切换。虽然方法笨,但是目前贼好使。

chsh -s /bin/bash	//切换到bash
chsh -s /bin/zsh	//切换到zsh
​如果输入密码后提示no change made,那么命令前加上sudo获取临时管理员权限

如果切换后还不行,那就可能是你没有安装homebrew,可以通过brew help 检测,如果没有,命令行安装就行

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

原文链接:https://blog.csdn.net/AndroidOliver/article/details/108453324

栏目分类
最近更新