Featured image of post Uninstall Sass installed via Ruby

Uninstall Sass installed via Ruby

I got problem when try to uninstall sass installed from ruby, and this is how I solve it.

The story begin when i see tutorial about sass, i think it is better to install sass locally. So, i decided to remove sass installed on my mac. I installed sass many times via homebrew for learning but i didn’t notice that there is another sass installed from ruby before.

I ran brew rm node-sass and brew rm sass to remove them. Then when i checked sass -v, it still show the version of sass installed from ruby.

1
2
3
mw@mac ~ % brew ls  | grep "scss"
mw@mac ~ % which sass
/Users/mw/.rbenv/shims/sass

first, I should check which Ruby version of sass installed from ruby.

1
2
mw@mac ~ % rbenv which sass                                         
/Users/mw/.rbenv/versions/3.4.6/bin/sass

then, I checked list of app installed on that version of Ruby.

1
2
3
mw@mac ~ % RBENV_VERSION=3.4.6 gem list --local | grep sass
jekyll-sass-converter (3.1.0)
sass-embedded (1.93.2 arm64-darwin)

Once i found the culprit, remove it with sudo RBENV_VERSION=3.4.6 gem uninstall sass-embedded -a --force. Then the last run rbenv rehash.

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus