问题: mac终端 -bash: brew: command not found|linux运维开发|在线助手-您的在线生成制作工具箱!
问题关键字: mac终端,command not found,linux运维开发,在线生成制作工具,在线助手!
问题详细描述: mac终端 -bash: brew: command not found解决方案是在线助手博客-您的在线生成制作工具箱,系列文章之一,主要记录了mac下解决终端command not found的问题。!
二三九九
mac终端 -bash: brew: command not found
在线助手博客首页
###Hello world!
#####一、mac终端运行 ```java brew install xxx ``` 提示找不到命令 ```java -bash: brew: command not found ``` ####二、解决办法,需要安装Homebrew **复制以下命令到mac终端后回车** ```java /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ``` 之后出现如下提示,再回车即可 ```java Press RETURN to continue or any other key to abort ``` 稍等片刻回车可能会出现Downloading Command Line Tools (macOS Sierra version 10.12) for Xcode ,表示正在下载Command Line Tools,等它下载完成即可。 ```java Downloading Command Line Tools (macOS Sierra version 10.12) for Xcode ``` [如果终端下载的版本不兼容,可以去官网离线下载适合当前版本的。](https://developer.apple.com/download/more/)  ####三、安装完成后 输入 `brew help` 可验证是否安装成功  **如果出现上述信息,则表示安装成功。** >转载请注明:本文转载自[在线助手|在线工具](https://www.it399.com/)博客,原文链接:https://www.it399.com/blog/linux/201807011141
返回顶部
下载Android客户端
Copyright © 2017-2018 . All Rights Reserved.
粤ICP备18008506号