5

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.

3
  • Looks like you have some npm packages to update, fix the errors in your report and should come right. The TLS error usually happens on a web server, are you updating on your local machine or remote? Commented Oct 5, 2022 at 18:20
  • Does this answer your question? Getting errors while installing node-sass Commented Oct 6, 2022 at 5:54
  • No it does'not. problem is fixed with the answer below. Thank you so much for your effort though. Commented Oct 6, 2022 at 6:59

1 Answer 1

7

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

npm uninstall node-sass
npm install sass
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you so much. İt was actually sad that the problem was so simple :D Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.