为什么我不能在Mac OS Sierra上安装Sass? [英] Why can't I install Sass on Mac OS Sierra?

查看:93
本文介绍了为什么我不能在Mac OS Sierra上安装Sass?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从终端输入以下代码在Mac OS Sierra(10.12)上安装Sass 3次:

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.

我已经检查过Mac上是否安装了ruby,这是我拥有的版本:

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]

我该怎么办?

注意:我是一个新手,根本不了解编程,这是我第一次使用该终端.

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

推荐答案

我遇到了完全相同的问题,但是在Compass上找到了类似线程的解决方案.

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

然后尝试

sudo gem install sass

它对我有用,我现在正在运行Sass 3.5.1(出血边缘)

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

这篇关于为什么我不能在Mac OS Sierra上安装Sass?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆