我试图在Windows上使用Cygwin运行Grunt SASS任务。我一直收到这个错误:
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
不幸的是,这给了我相同的消息,然后我按照说明here将它放在我的PATH变量中,并通过使用命令提示符全局安装它。然而,这仍然给了我同样的信息。
我错过了让SASS工作的任何事情吗?我想我已经遵循了所有必要的步骤,似乎无法弄清问题是什么。
编辑:我可以确认已经安装了ruby
答案 0 :(得分:0)
您需要在机器上安装SASS
gem install sass