14

I recently downloaded OSX Yosemite and now grunt-contrib-sass is not working and I am getting the error:

Running "sass:dist" (sass) task
Warning: spawn ENOENT Use --force to continue.

Aborted due to warnings.

I'm not a grunt expert, do I need to reinstall any plugins or something else? I'm happy to provide any other information if needed. Thanks.

Vadim Kotov
  • 7,103
  • 8
  • 44
  • 57
Bennett
  • 899
  • 4
  • 12
  • 18
  • 3
    It sounds like you need to install sass: `gem install sass` or http://sass-lang.com/install `Warning: spawn ENOENT` means node is trying to spawn a process that doesn't exist. – Kyle Robinson Young Aug 01 '14 at 21:14
  • 3
    I had to use `sudo gem install sass` but it's working now. Thanks! – Bennett Aug 01 '14 at 22:23
  • Possible duplicate of [What causes this error in grunt-contrib-compass after update to Yosemite?](https://stackoverflow.com/questions/26423705/what-causes-this-error-in-grunt-contrib-compass-after-update-to-yosemite) – Suresh Pattu Dec 06 '17 at 06:12

2 Answers2

30

Adding it as an answer here from comments above for posterity.

That error usually means Sass isn't installed. Run gem install sass to install it.

For me, it kept failing to install, so ran gem install sass --debug --backtrace --verbose and that fixed the no implicit conversion of nil into String (TypeError) install error.

jamie-wilson
  • 1,874
  • 20
  • 37
  • `gem install sass` also worked for me doing a totally different thing (connecting steroids^2 to an app) while getting this ENOENT error. Thanks! – Henrik Dec 31 '14 at 13:19
0

I noticed that running compass directly threw an exception, so I uninstalled compass and reinstalled it (making sure to delete all compass binaries on PATH) and that fixed it.

pseudosudo
  • 5,389
  • 6
  • 34
  • 48