Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find gem sass (>= 0.a) with executable sass

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.
like image 926
xylar Avatar asked Jan 26 '18 12:01

xylar


2 Answers

Not sure why, but I had to reinstall sass gem install sass and it fixed it.

like image 98
xylar Avatar answered Oct 31 '22 15:10

xylar


this sudo gem install sass -n /usr/local/bin fixed it for me!

like image 1
Luca Gans Avatar answered Oct 31 '22 17:10

Luca Gans