Warning: spawn ENOENT Use with Grunt sass task

12k Views Asked by At

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.

2

There are 2 best solutions below

1
On

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.

0
On

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.