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

杀马特。学长 韩版系。学妹 提交于 2019-11-29 15:16:14

问题


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.


回答1:


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)




回答2:


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:


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.



来源:https://stackoverflow.com/questions/45261658/why-cant-i-install-sass-on-mac-os-sierra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!