
Node Sass does not yet support your current environment
17/03/2021Here is how you can fix node incompatibility error, using "Node Sass does not yet support your current environment" as an example.
If you ever update your version of node then you might start running into the “Node Sass does not yet support your current environment” error. I’ve had this happen a few times (including today), and thought that it might be nice to put a fix here for anyone who might be looking.
This problem happens because the version of node-sass that you have installed is no longer compatible with the version of node you are trying to run it with. I guess this could work either way, but it is more likely that your node-sass version is behind; which is nice, because I would rather upgrade an npm package than downgrade node.
Here are a couple of things you could try. Don’t worry, they are nice and quick, with little fuss.
Note: If you have installed node-sass globally then you will need to run with a ‘-g’ flag.
npm rebuild node-sass
or
npm rebuild -g node-sass
Running rebuild basically recompiles the package to match the new node version. However, if this doesn’t work for you (which it doesn’t for me) then your best bet is to uninstall and reinstall node-sass.
npm uninstall node-sass && npm install node-sass
or
npm uninstall -g node-sass && npm install -g node-sass
Yup, that’s right. If it doesn’t work, wipe it clean and start again!
Here is how you can fix node incompatibility error, using "Node Sass does not yet support your current environment" as an example.
Need to make a directory in PHP? No Problem! mkdir has you covered... Need to recursively make directories in PHP? mkdir has you covered, too!
You probably know a few tricks for changing bullet colour and icon of a html list element using CSS, but this one might be new!
Learn how to regenerate and update WordPress media and image sizes both programmatically (without plugin), and also with a handy plugin.
Ever seen constants like __DIR__ and __FILE__ being used in PHP? These are 'Magic Constants', and this is how we can use them.
Learn how to use event listeners to detect and handle single and multiple keypress events in JavaScript. Add modifier keys to your application!