Home > Software design >  Can't install node-sass using npm
Can't install node-sass using npm

Time:10-06

I am trying to install SASS compiler node-sass which will compile SCSS code into CSS code. I am trying by watching an online course, doing same things but getting some errors.

npm init --yes : creates a json file


npm install node-sass : This command cause the error below

enter image description here I tried a lot of things to solve and serached for hours but I could not figure out how to get node-sass running.

CodePudding user response:

node-sass is deprecated and doesn't support node 18. Replace it with sass

npm uninstall node-sass
npm install sass
  • Related