Error: Node Sass does not yet support your current environment

Back to all posts
Snippets
21st October 2020

A scary looking error with an incredibly simple solution. The full error in my case is:

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

I intermittently see this error when I try to run a build of a project I haven't worked on in a while, and in the intervening period I've updated my global installation of Node. It's one of those ones that's always faintly alarming looking to begin with, until you remember it's a one liner to fix.

The solution? Run this command in the affected project:

npm rebuild node-sass

It'll run for a couple of minutes, and bob's your uncle - you should be able to run your tasks again.

Comment on this post

I love to talk web. If you have any civil thoughts, corrections or comments on this post, feel free to tweet or DM @fraserboag or, if you prefer, email fraser.boag@gmail.com.

Tweet

Keep up to date

From time to time I post things which people seem to find fairly interesting, stick your email address in the box below and I'll make sure you hear about it!