按照 Homebrew 安装指南的规定,我在终端中输入以下内容:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
它吐出的内容如下:
-e:4: syntax error, unexpected '<'
<!DOCTYPE html>
^
-e:5: syntax error, unexpected '<'
<html>
^
-e:7: syntax error, unexpected '<'
<meta charset='utf-8'>
^
-e:8: syntax error, unexpected '<'
<meta http-equiv="X-UA-Compatible" content="IE=edge">
^
-e:8: syntax error, unexpected tIDENTIFIER, expecting end-of-input
<meta http-equiv="X-UA-Compatible" content="IE=edge">
此时,运行任何 brew 命令都会返回以下内容:
-bash: brew: command not found
有什么解决方案吗?谢谢。
最佳答案
提供的 URL 对我也不起作用,但这样做:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
我怀疑 GitHub 端发生了一些变化。
关于macos - 在 Mac 上安装 Homebrew 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20105210/