Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Sass Basics Getting Started with Sass What is Sass?

Kent Hefley
Kent Hefley
11,215 Points

Ruby Sass is Deprecated

I just updated SASS through the command prompt and got the message that next month, Ruby Sass will be put to pasture and to visit the SASS blog for more info. It states that things will shift to something called Dart Sass. I also read this will not support the --watch command. From what I am reading, this is a different language. I am not able to find much info I can understand doing a simple google search

Will this make any changes to how we write our code? Will we still be able to use SCSS? How does all this work?

1 Answer

Yes, this is true. The new recommendation is to use the JavaScript/Node version of Sass instead of the one written in Ruby (it's still the same Sass, just written in a different programming language). To get the new Sass working on your computer, install Node (there is an installer at Node's website, or you can install it with Homebrew on a Mac. Once you have Node and npm on your machine, you'd simply write:

npm install -g sass

and you'll have the new Sass available globally (aka, in all folders on your computer). Once you have it, you can still write the same:

sass --watch site.scss:..\site.css --style=compressed

and

sass site.scss ..\site.css

commands you've learned with the Ruby-based Sass. You can read more about this Sass implementation on their npm page.

Kent Hefley
Kent Hefley
11,215 Points

Eric, thank you for this. One other question. Do I need to uninstall the Ruby version before installing the node version?

Hey Kent, Sorry to leave you hanging for a couple days. Yes, you probably don't want both Sass versions on your machine, because they both try use the "sass" command in the terminal (in other words, they would both try to respond to a terminal command like sass --watch mysass.scss:mycss.css. That would probably cause conflicts and/or unexpected behavior.

To uninstall the Ruby version, the command should just be:

gem uninstall sass

Similarly, if you wanted to uninstall the Node version, you could just run:

npm uninstall -g sass

if it's globally installed, or

npm uninstall sass

if it's locally installed (aka, just installed in that one folder). Good luck to you!

Kent Hefley
Kent Hefley
11,215 Points

Eric. Again, thank you so much. You have been a huge help!