如何解决"你需要有Ruby和萨斯安装在你的PATH此任务的工作"警告? [英] How to resolve "You need to have Ruby and Sass installed and in your PATH for this task to work" Warning?

查看:470
本文介绍了如何解决"你需要有Ruby和萨斯安装在你的PATH此任务的工作"警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作设立一个新的Mac的过程。我已经安装了咕噜和放大器;咕噜CLI全球。然后,我做了一个 NPM安装一个项目文件夹内安装所有的依赖关系。

I am in the process of setting up a new Mac for work. I have installed Grunt & Grunt CLI globally. Then I did a npm install inside a project folder to install all dependencies.

没有问题,到目前为止,但只要我尝试运行青菜:DIST 任务,我得到这样的警告:

No problems so far, but as soon as I try to run the sass:dist task, I get this warning:

Warning: You need to have Ruby and Sass installed and in your PATH for
this task to work. More info:
https://github.com/gruntjs/grunt-contrib-sass Use --force 
to continue.

我的理解是,我需要有Ruby和萨斯对在全球层面对这一任务运行安装。当我还是pretty新的与终端的工作,我做了一个快速搜索,找出 PATH 是 - 好像它的一些系统路径(可以改变),其中重要的数据被存储。

What I understand is that I need to have Ruby and Sass installed on a more global level for this task to run. As I am still pretty new to working with the terminal, I did a quick search to find out what PATH is - seems like its some system path (that can be changed) where important data is stored.

这是否意味着我可以简单地做一个 sudo的咕噜安装的contrib - 萨斯-g 来解决这个问题?什么关于Ruby - ?我一直以为它已经安装在OS X

Does this mean I can simply do a sudo grunt install contrib-sass -g to resolve the issue? And what about Ruby – I always thought its already installed on OS X?

推荐答案

好吧,我得到了它。我只是用创业板安装SASS ,现在一切都很好,安装无礼的话......再简单不过了。

Ok I got it. I just had to install Sass using gem install sass and now everything is fine...couldn't be easier.

这篇关于如何解决"你需要有Ruby和萨斯安装在你的PATH此任务的工作"警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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