... to your developer and Continuous Integration experience due to its painfully slow installation process.
The node-sass during its installation
npm install node-sass will:
- Trigger the
node-gypif it won't be able to find binaries for your operating system.
- Use Python 2.7 to run some scripts.
- Run a painfully slow
postinstallprocess (adds up to 1 minute to your CI build time).
So if your team is using various operating systems (Windows/Linux/MacOS) or using a Continuous Integration system just replace it with a much better alternative sass.
I guess the reason why
node-sass is still so popular is due to the Create React App support for SASS. But you don't have to eject a CRA if you don't want to compromise your installation process or a build time. Simply use below command inside your app.
Transparently replace your
sass and enjoy faster builds and quicker installs:
rm -rf node_modules npm install node-sass@npm:sass -D --legacy-peer-deps