Pink Donut
Pink Donut

Reputation: 41

Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime

I have some problems with using nodejs. I always used nodejs to use gulp and sass for my projects with HTML. Never had problems with it until the following error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57). I already have npm globally installed with: npm -g install gulp. Then I could always type in gulp and then my HTML page worked, but now I get the above error.

What am I doing wrong?

PS: Hopefully I use stackoverflow well, it's my first question, so apologize if I do it wrong.....

Upvotes: 3

Views: 9541

Answers (4)

zemiacsik
zemiacsik

Reputation: 71

Having python 2.7.* in path instead of 3.* and then reinstalling node-sass npm uninstall node-sass && npm install node-sass worked for me as is mentioned in other topic.

So checking your python --version could be something to start with.

Upvotes: 1

Avinash Dalvi
Avinash Dalvi

Reputation: 9311

Run this command to solve this issue.

npm rebuild node-sass

if this didnt work then use below :

npm rebuild node-sass --force

Upvotes: 4

amdg
amdg

Reputation: 2239

The link from the stack trace below helped me in resolving this issue.

Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2

This link(https://github.com/sass/node-sass/releases/tag/v4.7.2) clearly shows node versions which are supported.

    OS      Architecture    Node
    Windows x86 & x64       0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9
    ...     ...             ...    

I was using node 10.15.3 which is clearly not supported. So,downgraded the node version to 8.11.1, executed npm install again. Got the following message.

Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x

Found bindings for the following environments:
  - Windows 64-bit with Unsupported runtime (64)

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.

As suggested, ran npm rebuild node-sass --force. And the issue was solved.

Upvotes: 2

Arun Bertil
Arun Bertil

Reputation: 4648

I guess your node version might be above node js 9

Upvotes: 2

Related Questions