安装HomeBrew在Mojave上不起作用

时间:2019-01-29 18:10:01

标签: ruby homebrew

我在终端输入:

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

然后我回来

illegal variable name

有什么建议吗?

2 个答案:

答案 0 :(得分:3)

也许这是同一个问题? https://discourse.brew.sh/t/illegal-variable-name-error-mac-high-sierra/3361/2

could you run bash before pasting /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" there?

答案 1 :(得分:0)

只需打开终端。将命令写为

bash

,然后按Enter键。粘贴与-

相同的命令
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"