user420479
user420479

Reputation:

Installing HomeBrew doesn't work on Mojave

I type in Terminal:

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

and I get back

illegal variable name

Any recommendations?

Upvotes: 1

Views: 883

Answers (2)

Sidharth Taneja
Sidharth Taneja

Reputation: 564

Simply open the terminal. Write the command as

bash

and press Enter button. Paste the same command as -

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

Upvotes: 1

coda
coda

Reputation: 303

Maybe this is the same issue? 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?

Upvotes: 2

Related Questions