Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Can someone tell me How i can install sass on windows by Node.js (http://nodejs.org/)

Can someone tell me How i can install sass on windows by Node.js (http://nodejs.org/)

7 Answers

Sean T. Unwin
Sean T. Unwin
28,690 Points

A few questions, Hanan Ibrahim.

  1. Do you have Nodejs already installed on your machine?

  2. Do you have any version(s) of Microsoft Visual Studio installed on your machine?

  3. Am I understanding correctly that you do NOT want to use the Ruby gem to do this?

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Yes Mr.Sean I installed it But i don't know how to use it to instell sass can you tell me please. the way to do it.

Sean T. Unwin
Sean T. Unwin
28,690 Points

Did you visit and go through any of the links that I replied to you in your earlier thread? Perhaps try either of the apps at the bottom of my post there if you don't have very much command line experience.

If you don't want to do that then you could try the following.

** Warning **: While I will outline the set-up, the usage could get a bit technical and you can find that out in the respective packages' pages below.

Be sure you have Nodejs installed and you have a terminal / command window open.

You could install node-sass.

npm install -g node-sass

I believe a limitation with this is the fact that there is no --watch command so it won't automatically compile the .scss to .css; You will have to do it manually - see the documentation in the node-sass link above.

To compensate for the lack of --watch with the node-sass library you could install sass-watch.

npm install -g sass-watch

If you are using these tools then it would be greatly beneficial to use a task manager such as Grunt or Gulp. At this time I will not be going over how to use these tools as there are many tutorials on getting used to using them. Use your favourite search engine to find out more.

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Thank you Mr.Sean I Tried it but it doesn't work :( Can you write to me Explanation About it i wanna the steps to do it i'm working to install it since three days but it doesn't install

Sean T. Unwin
Sean T. Unwin
28,690 Points

Uninstall Ruby and Node. Reboot your computer and start over from the beginning.

Tell us exactly what you are doing, step-by-step, and we will go from there.

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Ok Mr.Sean Thanks for your help But how i can Communicating you until tell you what i do ??Here ??

Sean T. Unwin
Sean T. Unwin
28,690 Points

Here is a step-by-step video tutorial I found. Hopefully it will help you. Otherwise feel free to post your process I requested earlier here.

Install Ruby and Sass on Windows

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Ok Mr.Sean Thanks for your help I saw this video before and i worked on it .but nothing happened but i will try it again and than i will tell you what the new