Grunt的SASS安装问题

SASS installation issues with Grunt

本文关键字:问题 安装 SASS Grunt      更新时间:2023-09-26

我试图运行Grunt SASS任务与Cygwin在windows上。我一直得到这个错误:

Shreyansh@Shrey-PC ~/Projects/Resview
$ grunt
Running "uglify:build" (uglify) task
Running "sass:dist" (sass) task
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.
Aborted due to warnings.

所以我只是在网上搜索,并尝试做以下事情来解决我的问题:

Shreyansh@Shrey-PC ~/Projects/Resview
$ gem install sass
Successfully installed sass-3.4.22
Parsing documentation for sass-3.4.22
Done installing documentation for sass after 6 seconds
1 gem installed

不幸的是,这给了我同样的消息,然后我按照这里的说明把它放在我的PATH变量中,并通过使用命令提示符全局安装它。然而,这仍然给了我同样的信息。

我错过了什么让SASS工作吗?我想我已经按照所有必要的步骤做了,但似乎还是不知道问题出在哪里。

编辑:我可以确认ruby已经安装了

你需要在你的机器上安装SASS

gem install sass