How to fix “Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (57)”

Image for post
Image for post

Maybe you already get this error when compiling sass files. In my case it’s regularly when I use nvm to switch from a node version to another.

The explanations of the error suggest to read this release information : https://github.com/sass/node-sass/releases/tag/v4.5.0. I don’t think it’s very useful.

I read several answers on forums like removing node_modules directory and reinstalling all node packages via npm install. Don’t do that! You could have troubles if your package.json isn’t clean with packages version when you are in a development phase of your project.

What to do simply and fastly

I can’t explain what happens when we switch node environment but I know that a simple command fix the error :

npm rebuild node-sass

It takes some minutes, don’t worry.

Image for post
Image for post

Hoping this will be useful for some developers.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store