1. npm init
2. to the project folder -> npm install node-sass –save-dev
3. go to package.json -> dependancy -> and you will able to see sass install with version
Create project structure
index.html
CSS/style.css
SCSS/main.scss
in package.json
"scripts": { "compile:sass" : "node-sass sass/main.scss css/style.css -w" }
in command line
to run sass file… by doing this scss code will convert to css code in style.css file.
npm run compile:sass