Why can't I install Sass on Mac OS Sierra?

2019-02-07 17:05发布

I have tried installing Sass three times on Mac OS Sierra(10.12) from the terminal typing the following code:

sudo gem install sass

Then it asks for my password, I enter it and nothing happens (I even waited half an hour) it does not even gives any error or any other message, then when I try to close the terminal window a message appears saying that the processing will terminate if I close the window.

I already checked on if ruby is installed on my Mac and this is the version I have:

ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

What should I do?

NOTE: I'm a newbie and don't know about programming at all and this is the first time I use the terminal.

3条回答
叛逆
2楼-- · 2019-02-07 17:14

Buddy,

I just now faced the same problem exactly same.

$ brew install ruby

make sure homebrew is installed on your PC then I did

$ sudo gem install sass

The installation took place

$ sass -v
Sass 3.5.1 (Bleeding Edge)

Hope it helps you too..

查看更多
聊天终结者
3楼-- · 2019-02-07 17:20

I used to have the same problem installing the Sass.
After installing Xcode with

xcode-select --install  

I agree the license with

sudo xcodebuild -license  

and finally run the app Xcode and finished installing.
After that I write sudo gem install sass and it works.

查看更多
beautiful°
4楼-- · 2019-02-07 17:25

I had the exact same issue but found a solution for a similar thread on Compass.

You might need to install the developer tools first by entering the following on the command line:

xcode-select --install

Then try

sudo gem install sass

It worked for me and I am now running Sass 3.5.1 (Bleeding Edge)

查看更多
登录 后发表回答