Error: Node Sass does not yet support your current environment.

Shadi Atawneh
1 min readJun 12, 2021

--

Error: Module build failed. Error: Node Sass does not yet support your current environment. Windows 32/64-bit with unsupported runtime.

This error happened to me after the upgrade of the node.js.

Cause: The Sass version is not compatible with the Node.js version

Solution: you should check the If the version of node is wrong, you must downgrade the node.js or upgrade node-sass, until you have a compatible pair. If the node version is supported, you may just need to run:

npm rebuild node-sass

If the previous command does not work, you may run:

npm uninstall node-sass && npm install node-sass

and this is the better way to fix the problem.

Sometimes the previous command also gives errors. Just reboot (restart) your computer, then run your project regularly.

If all the above are not working, you should check the compatibility of node.js with node-sass versions. Here is the node version support policy: https://www.npmjs.com/package/node-sass . then you can install the desired version of node-sass with the following command:

npm install node-sass@version - legacy-peer-deps
npm install node-sass@9.0.0 - legacy-peer-deps

You may need to delete node-modules and reinstall them before.

--

--