Sass Installation
Sass Installation (Step-by-Step)
Sass Installation process is given below because Sass must be installed on your system so it can compile .scss / .sass files into normal .css that browsers understand.
✅ Method 1: Install Sass using Node.js (Recommended)
This is the official and most widely used method.
Step 1: Install Node.js
-
Download from nodejs.org
-
Install the LTS version
-
Verify installation:
Step 2: Install Sass globally
Check installation:
✔ If a version appears, Sass is installed successfully.
Step 3: Compile Sass to CSS
Watch Mode (Auto Compile)
Automatically recompiles when the file is saved:
✅ Method 2: Install Sass using VS Code Extension (Beginner Friendly)
No terminal required.
-
Open VS Code
-
Go to Extensions
-
Search Live Sass Compiler
-
Install it
-
Click “Watch Sass” in the status bar
✔ CSS file is generated automatically.
❌ Method 3: Ruby Installation (Deprecated)
⚠️ Not recommended anymore.
📁 Recommended Folder Structure
Compile:
🎨 Output Style Options
Available styles:
-
expanded -
compressed -
nested -
compact
❗ Common Error & Fix
Error: 'sass' is not recognized
Fix:
-
Restart terminal
-
Reinstall Sass
📌 Summary
-
Install Sass using Node.js
-
Write styles in
.scss -
Compile to
.css -
Use watch mode for faster development
