It’s a pain to run across mistakes while working on a project, and nothing is more aggravating than having to resolve issues in your build pipeline.
Whether you’re using gulp, webpack, grunt, or something else, these issues will appear over time.
We’ll look at how to repair the Node Sass unsupported runtime problem in the sections below.
The Problem:
You go running your project’s build pipeline, and all of a sudden, you get this error.
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (83)
What went wrong, and why are we seeing this problem now?
The error above indicates that the version of Node you have installed and the version of the node-sass package in your node modules folder are incompatible.
You may have upgraded your Node version at some time, and some of your installed packages may no longer work.
The Solution:
The answer is straightforward. Execute the command below:
npm rebuild node-sass
All of your node-sass plugins will be recompiled with the latest Node binary using this command.
Allow for some time for this command to execute, then node-sass should be repaired.
Alternatively, you may completely uninstall node-sass and reinstall it using the command:
npm uninstall node-sass && npm install node-sass
Finally, you may erase the whole node_modules folder and reinstall everything with npm install.
Follow Up:
It’s usually a good idea to use a package like NVM to maintain appropriate version control if you’re going to be upgrading your Node version in your development environment.
NVM makes it simple to install and transition between multiple Node versions. You should always try to maintain your development environment as near to your production environment as feasible.
At the same time, you want to be able to check out fresh Node versions to see what new features have been included.
Downgrading your Node to the version it was when node-sass worked is another way to address the “Node Sass does not yet support your current environment” problem. To do this, use the nvm use [node version] command.