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

Using node-sass doesn’t seem to work with v6.3.1 node on 64-bit Linux, even though there was a merge to support node v6

X@X:~/dev/node/test4$ node --version
v6.3.1
X@X:~/dev/node/test4$ node-sass src/scss/style.scss dist/css/style.css
/usr/lib/node_modules/node-sass/lib/index.js:12
    throw new Error(errors.unsupportedEnvironment());
    ^

Error: Node Sass does not yet support your current environment: Linux 64-bit with false
For more information on which environments are supported please see:
TODO URL
    at Object.<anonymous> (/usr/lib/node_modules/node-sass/lib/index.js:12:11)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib/node_modules/node-sass/bin/node-sass:11:12)
    at Module._compile (module.js:541:32)

Any other info which I should post?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 7
  • Comments: 21 (5 by maintainers)

Most upvoted comments

This error message is not possible with v3.8.0

Error: Node Sass does not yet support your current environment: Linux 64-bit with false For more information on which environments are supported please see: TODO URL

The TODO URL was removed in v3.7.0.

You must have multiple versions of node-sass installed. You can confirm this with

npm ls node-sass

If you only see one node-sass and it’s 3.8.0 then run the following to rebuild the binary

npm rebuild node-sass

Use the following command npm rebuild node-sass

Problem persisted after that, but npm uninstall node-sass -g && node cache clean && node install node-sass fixed that. Thanks!

Problem persisted after that, but npm uninstall node-sass -g && node cache clean && node install node-sass fixed that. Thanks!

Do you mean npm uninstall node-sass -g && npm cache clean --force && npm install node-sass

try npm rebuild node-sass

If you’re using gulp, try deleting node_modules and changing gulp-sass from 2.x to ^3.0.0

Use the following command npm rebuild node-sass

Thank you was looking for a solution for over a freckin day!!

node_modules/node-sass/package.json:

"_from": "node-sass@latest",
"_id": "node-sass@3.8.0",
...
"_resolved": "https://registry.npmjs.org/node-sass/-/node-sass-3.8.0.tgz",

I installed it yesterday, and my node is 6 for sure as per:

x@x:~/dev/node/test4$ node --version
v6.3.1

I tried to re-install node-sass just in-case I were actually wrong:

X@X:~/dev/node/test4$ node --version
v6.3.1
X@X:~/dev/node/test4$ npm install node-sass --save-dev
test4@0.0.1 /home/X/dev/node/test4
└── mysql@2.11.1 

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm WARN lmao@0.0.1 No repository field.
X@X:~/dev/node/test4$ node-sass
/usr/lib/node_modules/node-sass/lib/index.js:12
    throw new Error(errors.unsupportedEnvironment());
    ^

Error: Node Sass does not yet support your current environment: Linux 64-bit with false
For more information on which environments are supported please see:
TODO URL
    at Object.<anonymous> (/usr/lib/node_modules/node-sass/lib/index.js:12:11)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib/node_modules/node-sass/bin/node-sass:11:12)
    at Module._compile (module.js:541:32)
X@X:~/dev/node/test4$ 

We have comprehensive documentation on how to file an issue with useful information.

It looks like you’re using an old version of node-sass that came out before Node 6. Update to node-sass@v3.8.0