我在终端输入:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后我回来
illegal variable name
有什么建议吗?
答案 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)"