After recent OS update to High Sierra. I am having problems with SASS and Grunt.
When I run grunt
Running "sass:compressed" (sass) task
Traceback (most recent call last):
2: from /usr/local/bin/sass:22:in `<main>'
1: from /usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem sass (>= 0.a) with executable sass (Gem::GemNotFoundException)
I have tried updating ruby and re-installing grunt:
> npm install grunt --save-dev
npm WARN [email protected] requires a peer of grunt@~0.4.0 but none was installed.
npm WARN [email protected] requires a peer of grunt@~0.4.0 but none was installed.
npm WARN [email protected] requires a peer of grunt@~0.4.0 but none was installed.
npm WARN [email protected] requires a peer of grunt@~0.4.0 but none was installed.
npm WARN [email protected] No license field.
Not sure why, but I had to reinstall sass gem install sass
and it fixed it.
this sudo gem install sass -n /usr/local/bin
fixed it for me!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With