Sass-安装错误 [英] Sass - Error Installing

查看:79
本文介绍了Sass-安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了Ruby gem Sass,并且经常在我正在开发的应用中使用它.今天,我像往常一样去运行sass --watch scss:css,发现我遇到了以下错误:

I had the Ruby gem Sass installed recently and have been frequently using it for an app I'm working on. Today I went to go run sass --watch scss:css as I normally would and noticed I got the following error:

-bash: sass: command not found

然后我尝试运行以下行并获得以下输出:

I then tried running the following line and got this output:

~$ sudo gem install sass

ERROR:  While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/sass

在解释shell/bash错误时,我会以为自己是新手,关于可能导致此问题的任何建议?

I would consider myself a novice when it comes to interpreting shell/bash errors, any suggestions as to what might be causing this?

更新

此后,我尝试了@jperelli的建议,并得到了以下内容(我在Mac OS上为ps):

I've since tried @jperelli's suggestion and got the following (ps I am on Mac OS):

~$ sudo gem update bundler

Updating installed gems
Updating bundler
Fetching: bundler-1.10.5.gem (100%)
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/bundle

推荐答案

如果仍然存在此问题,则可以尝试:

If you have still this problem, you may try:

$ sudo gem install -n /usr/local/bin sass

我在 OS X El Capitan 的最新更新中遇到了与 compass 几乎相同的问题,并且对我有用.像这样使用它即可:

I had almost the same issue (for compass) with the latest update to OS X El Capitan, and it worked for me. Just use it like this:

$ sudo gem install -n /usr/local/bin gem_package_name

祝你好运!

这篇关于Sass-安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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