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

npm uninstall node-sass
npm install sass
Answer from linusw on Stack Overflow
🌐
npm
npmjs.com › package › node-sass
node-sass - npm
May 20, 2023 - Wrapper around libsass. Latest version: 9.0.0, last published: 3 years ago. Start using node-sass in your project by running `npm i node-sass`. There are 11766 other projects in the npm registry using node-sass.
      » npm install node-sass
    
Published   May 20, 2023
Version   9.0.0
Author   Andrew Nesbitt
🌐
Sass
sass-lang.com › blog › node-sass-is-end-of-life
Sass: Node Sass is end-of-life
July 24, 2024 - This Node.js wrapper for LibSass was the first official Sass compiler available in the JavaScript ecosystem and was a huge part of Sass growing beyond the scope of the Ruby community where it originated, but it hasn’t received a new release in a year and a half and the most recent set of maintainers no longer have the bandwidth to continue updating it.
Discussions

css - Can't install node-sass using npm - Stack Overflow
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 : crea... More on stackoverflow.com
🌐 stackoverflow.com
css - What Is The Dıfference Between npm node-sass and npm sass - Stack Overflow
I've just learn I should use @use instead of @import in sass. But as I understood, I should use npm sass instead of npm node-sass to do that. What is the difference between these two ? Why @use and @ More on stackoverflow.com
🌐 stackoverflow.com
HELP! - Node Sass doesn't support Windows 64-bit - Help Requests - The Aurelia Discourse
Hello, I had a project that I started using aurelia-cli 1.3.1 (I don’t know what that means in terms of the framework version). I think I was using node 10.3.0 and npm 6.1.0 at the time. Everything compiled and worked just fine. Recently, I started a new project. More on discourse.aurelia.io
🌐 discourse.aurelia.io
1
August 23, 2021
Error while Installing node-sass
I believe node-sass is deprecated fyi More on reddit.com
🌐 r/node
11
7
April 27, 2021
🌐
Sass
sass-lang.com › install
Sass: Install Sass
The Sass team maintains two Node.js packages for Sass, both of which support the standard JavaScript API. The sass package is pure JavaScript, which is a little slower but can be installed on all platforms Node.js supports.
🌐
npm
npmjs.com › package › sass
sass - npm
3 days ago - This package is a distribution of Dart Sass, compiled to pure JavaScript with no native code or external dependencies. It provides a command-line sass executable and a Node.js API.
      » npm install sass
    
Published   Mar 10, 2026
Version   1.98.0
Author   Natalie Weizenbaum
🌐
GitHub
github.com › sass › node-sass › releases
Releases · sass/node-sass
July 24, 2024 - :rainbow: Node.js bindings to libsass. Contribute to sass/node-sass development by creating an account on GitHub.
Author   sass
Find elsewhere
🌐
GitHub
github.com › sass › node-sass
GitHub - sass/node-sass: :rainbow: Node.js bindings to libsass · GitHub
July 24, 2024 - :rainbow: Node.js bindings to libsass. Contribute to sass/node-sass development by creating an account on GitHub.
Starred by 8.5K users
Forked by 1.3K users
Languages   C++ 82.0% | JavaScript 12.6% | C 2.0% | Shell 1.8% | M4 0.6% | Makefile 0.5%
🌐
DEV Community
dev.to › letsbsocial1 › node-sass-and-node-910-4ol
node-sass and Node 9.1.0 - DEV Community
November 30, 2017 - So if you get this error because initially you might have been using an earlier version of Node/NPM (< 9.1.0) in which you had no compatibility issues with node-sass and suddenly you do upon upgrading to the latest (in my case, 9.1.0) version of Node/NPM, just make sure to upgrade node-sass to version 4.7.2.
🌐
GitHub
github.com › sass › node-sass › blob › master › TROUBLESHOOTING.md
node-sass/TROUBLESHOOTING.md at master · sass/node-sass
July 24, 2024 - :rainbow: Node.js bindings to libsass. Contribute to sass/node-sass development by creating an account on GitHub.
Author   sass
Top answer
1 of 1
25

Popularity

Blue line is node-sass, orange is sass popularity.

The sass readme explains some of the differences:

  • Dart Sass, from which this package is compiled, can be used either as a stand-alone executable or as a Dart library. Running Dart Sass on the Dart VM is substantially faster than running the pure JavaScript version, so this may be appropriate for performance-sensitive applications. The Dart API is also (currently) more user-friendly than the JavaScript API. See the Dart Sass README for details on how to use it.
  • Node Sass, which is a wrapper around LibSass, the C++ implementation of Sass. Node Sass supports the same API as this package and is also faster (although it's usually a little slower than Dart Sass). However, it requires a native library which may be difficult to install, and it's generally slower to add features and fix bugs.

Performance

There are performance differences which are covered in answer, which compares the differences compiling Bootstrap 4:

In this particular case, two seconds is not a big deal; but consider Dart-Sass(JS) is nine times slower than Dart-Sass(Dart VM) and three times slower than node-sass.

This article has more details about this benchmark.

Maintenance

node-sass is considered deprecated, but you can see frequent updates are happening for both packages.

Why @use and @forward doesn't work on node-sass

Because node-sass uses LibSass which is implemented in C and does not receive updates as frequently as the Dart implementation.

🌐
Medium
lazercat.medium.com › start-using-sass-in-your-node-js-in-5-minutes-66978e490e4b
How to start using SASS for CSS in your Node.js Web App in less than 5 minutes. | by Jesse Lewis | Medium
April 27, 2021 - How to start using SASS for CSS in your Node.js Web App in less than 5 minutes. SASS is an excellent tool for web designers to organize and output amazing sites. This article is less about what it is …
🌐
ITNEXT
itnext.io › the-css-preprocessor-dilemma-node-sass-or-dart-sass-32a0a096572
Node-Sass or Dart-Sass : The CSS Preprocessor Dilemma | by Ali Bahraminezhad | ITNEXT
November 13, 2020 - This article is mainly about Sass, and it’s preprocessor implementations: Dart-sass and Node-Sass.
🌐
Aurelia
discourse.aurelia.io › help requests
HELP! - Node Sass doesn't support Windows 64-bit - Help Requests - The Aurelia Discourse
August 23, 2021 - Hello, I had a project that I started using aurelia-cli 1.3.1 (I don’t know what that means in terms of the framework version). I think I was using node 10.3.0 and npm 6.1.0 at the time. Everything compiled and worked just fine. Recently, I started a new project.
🌐
Homebrew
formulae.brew.sh › formula › node-sass
node-sass — Homebrew Formulae
brew install node-sass · JavaScript implementation of a Sass compiler · https://github.com/sass/dart-sass · License: MIT · Development: Pull requests · Formula JSON API: /api/formula/node-sass.json · Formula code: node-sass.rb on GitHub ·
🌐
DEV Community
dev.to › ccreusat › migrating-from-node-sass-to-sass-dart-sass-with-npm-3g3c
Migrating from Node-Sass to Sass (Dart-Sass) with npm - DEV Community
May 20, 2022 - For 2 years now, LibSass and node-sass has been deprecated. A lot of reasons led the core team to this decision.
🌐
Sass
sass-lang.com › dart-sass
Sass: Dart Sass
The following Embedded Sass wrapper packages are available. If you have another one to add, please send a pull request! Node.js: The sass-embedded package is maintained by the Sass team, and supports the same official Sass JavaScript API as the native-JS sass package.
🌐
npm
npmjs.com › search
node-sass - npm search
A node-sass custom importer which turns ~ into absolute paths to the nearest parent node_modules directory.
🌐
Sass
sass-lang.com › documentation
Sass: Documentation
Sass is a stylesheet language that’s compiled to CSS. It allows you to use variables, nested rules, mixins, functions, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized and makes it easy to share design within and across projects · If you’re ...
🌐
Debian
packages.debian.org › sid › node-node-sass
Details of package node-node-sass in sid
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser