Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72)

Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (72)

I faced this issue when I used the latest version of node.js i.e, 12.6.0 and npm version 6.9.0.

which version of node-sass is compatible with above mentioned node and npm versions.

node-sass version: 4.5.3

like image 233
Rashmi Thakkar Avatar asked Jul 30 '19 07:07

Rashmi Thakkar


People also ask

Why is node sass not working?

This problem happens because the version of node-sass that you have installed is no longer compatible with the version of node you are trying to run it with.

How do I get rid of node sass?

node-sass' usage is deprecated and will be removed in a future major version. To opt-out of the deprecated behaviour and start using 'sass' uninstall 'node-sass'.

What node sass does?

Node-sass is a library providing binding for Node. js to libsass, the C interpretation of Sass's famous stylesheet preprocessor. It allows compiling . scss files to css at incredible speed natively and automatically via a connect middleware.


2 Answers

Use the following command:

npm rebuild node-sass

You likely copied the node_modules from a Windows or OSX system. Rebuilding it builds the right version for your system.

like image 163
Richard de Wit Avatar answered Sep 22 '22 16:09

Richard de Wit


We list this at the top of the README https://github.com/sass/node-sass#supported-nodejs-versions-vary-by-release-please-consult-the-releases-page-below-is-a-quick-guide-for-minimium-support For Node 12, you need node-sass 4.12

like image 20
nschonni Avatar answered Sep 19 '22 16:09

nschonni