2016-09-18 55 views
0

我试图在Windows上运行Cygwin的Grunt SASS任务。我不断收到此错误:SASS与Grunt的安装问题

[email protected] ~/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. 

所以我只是在网上搜索并试图做​​下面的解决我的问题:

[email protected] ~/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 

很不幸,这给了我同样的消息,然后我把这个在我的道路变量按照指令here并通过使用命令提示全局安装。然而,这仍然给了我同样的信息。

我错过任何让SASS工作的东西吗?我认为我遵循了所有必要的步骤,似乎无法弄清楚问题所在。

编辑:我可以证实,红宝石已经安装

+0

不要忘记红宝石! – fucethebads

+0

我已经安装了红宝石 – ShreyKumar

+0

会使用[grunt-sass](https://github.com/sindresorhus/grunt-sass)作为您的选项吗? – cartant

回答

0

您需要在您的计算机上安装SASS

gem install sass 
+0

我已经完成了,但它仍然给出了相同的消息 – ShreyKumar

+0

你尝试手动将Ruby bin路径添加到PATH中吗? – highFlyingDodo

+0

是的,如问题中所述,我已经在我的PATH – ShreyKumar