【问题标题】:SASS installation issues with GruntGrunt 的 SASS 安装问题
【发布时间】:2017-01-26 01:52:10
【问题描述】:

我正在尝试在 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​​ 已经安装

【问题讨论】:

  • 别忘了红宝石!
  • 我也安装了 ruby​​
  • 您会选择使用grunt-sass 吗?
  • 我已经尝试过 grunt-sass 但没有相应的存储库。

标签: javascript ruby sass gruntjs rubygems


【解决方案1】:

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

gem install sass

【讨论】:

  • 是的,正如问题中所说,我已经在我的 PATH 中添加了 Ruby
  • 试试 grunt-libsass!
猜你喜欢
  • 2014-08-07
  • 2013-07-14
  • 1970-01-01
  • 2016-04-08
  • 2023-03-30
  • 1970-01-01
  • 2021-06-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多