152

Getting this error on Arch Linux with node-sass. I'm using it with gulp-sass.

Node Sass does not yet support your current environment: Linux 64-bit with false

Versions

$ gulp -v
[19:43:15] CLI version 3.9.1
[19:43:15] Local version 3.9.1

$ npm -v
3.9.0

Node

$ node -v
v6.2.0

Even using this command npm rebuild node-sass is not changing anything.

Jitendra Vyas
  • 134,556
  • 218
  • 544
  • 822

22 Answers22

252

run npm rebuild node-sass

or

run sudo npm rebuild node-sass

Michael Vieth
  • 2,684
  • 1
  • 8
  • 6
  • 10
    This worked very well for the similar error in my Mac OSX environment! – Rahul Desai Oct 12 '16 at 19:01
  • 10
    Btw. It could happened, when you updated your NodeJS and node-sass was compiled with previous NodeJS version. – Garrett Nov 24 '16 at 15:24
  • 6
    can anyone explain why this works? will this need to be done every time I clear out my node_modules folder? or is sass installed as some kind of global 'service' – Simon_Weaver Jun 02 '17 at 18:58
  • also I'm very confused how a clean install in June 2017 (on Windows) leads to this error when Node 6 came out over a year ago? why wasn't this just a temporary error at the time. this solution did work for me - but I really would like to understand why! – Simon_Weaver Jun 02 '17 at 18:59
  • 4
    Documentation for npm rebuild says "This command runs the npm build command on the matched folders. This is useful when you install a new version of node, and must recompile all your C++ addons with the new binary.". I know I started hitting this after upgrading node, so maybe that's the same for everyone else here? – k2snowman69 Aug 18 '17 at 22:47
  • Worked for me. I guess this is the answer. – Umut Çağdaş Coşkun Aug 21 '17 at 18:34
  • Worked for me too… But presumably this is a bug in the build system? – andrewf Nov 17 '17 at 21:34
  • Nah, it just happens when NodeJS is upgraded to to C++ addons. – Esteban Morales Jul 28 '18 at 03:09
  • yea it's working for me.. i think because node-saas need syncronize with latest of new parts from latest version of node.js.. – Iam ByeBlogs Dec 10 '18 at 10:36
  • Unfortunately this doesn't seem to help this very similar error: https://github.com/laradock/laradock/issues/1898 – Ryan Jan 16 '19 at 14:56
100

in some cases you need to uninstall and install node-sass library. Try:

npm uninstall --save-dev node-sass

and

npm install --save-dev node-sass
Nickon
  • 8,180
  • 10
  • 52
  • 105
Jorge Torres
  • 1,426
  • 1
  • 8
  • 6
30

I managed to solve this issue using the command below.

npm audit fix - Worked for me

npm audit fix

I tried - Didn't work for me

sudo npm rebuild node-sass

Then I tried - Didn't work for me

npm uninstall --save-dev node-sass

and

npm install --save-dev node-sass
Shark Lasers
  • 383
  • 4
  • 13
Khan Sharukh
  • 761
  • 9
  • 19
29

As of July 2019 with Node v12 -

node-sass v4.11.0 doesn't work with Node 12.

I faced this problem when I upgraded node to v12.

Rebuilding node-sass as suggested by the other answers didn't work as well.

Upgrading node-sass to v4.12.0 fixed it for me.

npm install node-sass@4.12.0

Sashi
  • 1,999
  • 2
  • 22
  • 32
7

You should also check your version of nodejs. I was on a version 9 of node js which isn't officially supported at this time of writing. Reverting back to version 6.11.4 fixed the issue for me.

Prasanth Louis
  • 3,434
  • 2
  • 28
  • 41
  • Node 8 also will work. You can get node 8 from https://npm.taobao.org/mirrors/node/v8.12.0/ node-v8.12.0-x64.msi – David Nov 28 '18 at 00:00
6

I don't know if this applies here, but for me, I just removed node_modules and reinstalled (npm install). Issue was fixed.

abelabbesnabi
  • 1,763
  • 1
  • 12
  • 20
5

npm install or npm rebuild node-sass

fixes the problems

please refer: https://github.com/sass/node-sass/issues/1764

Fuat
  • 659
  • 9
  • 13
4

Go the path where node-sass is present and run this command

npm rebuild node-sass --force

This solved my issue

rams
  • 267
  • 4
  • 12
3

That worked for me:

sudo npm cache clean -f
sudo npm install -g n
sudo n 6.0.0
Andrei Todorut
  • 3,393
  • 1
  • 14
  • 23
  • For anyone wondering what `n` is, [click here](https://www.npmjs.com/package/n). Quote: _Node.js version management: no subshells, no profile setup, no convoluted API, just **simple**. (Unfortunately `n` is not supported on Windows yet.)_ – ADTC Feb 08 '18 at 17:59
2

I had the same issue for windows x64 Platform.

Just updated the package.json with newer version of node-saas instead rebuild because in order to rebuild you need visual studio build environment which is suck to install for a dependency :)…

go with latest node-saas you should be fine:

"node-sass": "^4.11.0",
Emrah Mehmedov
  • 1,444
  • 12
  • 24
2

Error I was getting, Module "build failed: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72)".

First, tried:

npm rebuild node-sass

nothing helpful, then tried

sudo npm install --unsafe-perm -g node-sass

Worked like a charm

Nandy
  • 81
  • 1
  • 4
2

Uninstall and reinstall node-sass and it will find missing binary for itself.

npm uninstall --save-dev node-sass
npm install --save-dev node-sass

If issue is not resolved using above commands, there may be problem with your node version. Check that your node version supports node-sass version. Chose a stable node version and repeat above commands to fix this issue.

Below is compatibility table of node with node-sass:-

enter image description here

If issue is still not fixed, check node-sass supported environment's list:- https://github.com/sass/node-sass/releases/

Balram Singh
  • 1,049
  • 14
  • 28
0

Remove node_modules/node-sass folder & run npm install (this may take some time based on the dependencies) then run npm run build

This should resolve the issue

user1991251
  • 71
  • 1
  • 1
  • 3
0

npm uninstall node-sass

npm i node-sass@4.7.2

https://dev.to/letsbsocial1/node-sass-and-node-910-4ol

0

Remove node modules: $rm-rf node_modules

Re install node modules: $npm install

MCMatan
  • 7,411
  • 4
  • 36
  • 73
0

If uninstall & install node-sass did not work try to remove node_modules folder and npm install

Masoud Darvishian
  • 3,080
  • 4
  • 27
  • 37
0

npm i @ionic/app-scripts Was the only thing that had any impact for me.

nscalf
  • 371
  • 2
  • 9
0

npm audit fix works for me like a charm!

samivic
  • 638
  • 5
  • 8
0

Probably a node version issue.

Check your node version with

node -v

you can install node version manager to make life easier. See

https://github.com/nvm-sh/nvm#install--update-script

Install:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

Usage: 
nvm install <version>       Download and install a <version> 
nvm use <version>           Modify PATH to use <version> nvm ls        
List versions (installed versions are blue)
DanTheMann
  • 126
  • 2
  • 6
0

Its just a version issue Install node version 10 it will work fine

npm install node@10   
0

I had the same issue.none of the solutions worked.So I tried my usual response of restarting my mac which I do quite rarely and the issue got resolved. When you dont shutdown or restart your Mac for a long time,such random issues occur.

Mike Tsubasa
  • 303
  • 3
  • 12
0

Kindly change your node version and use a stable version of node. This happened with me when I was trying with node version 15+ and npm version 7+. I changed my node version to 14.0.0 simply using nvm.

try:

nvm use 14.0.0

then:

npm run start or node-sass