Using n
to switch Node versions. I've ran yarn
, npm rebuild node-sass --force
many many times. And still fails. Getting this error:
Node Sass could not find a binding for your current environment
This usually happens because your environment has changed since running `npm install`. Run `npm rebuild node-sass --force` to build the binding for your current environment.
Anyone have any idea how to fix?
Also.. When running this command..
npm rebuild node-sass --force
I get..
npm WARN using --force I sure hope you know what you are doing.
Doens't seem like it is doing anything..
When you change the version of Node. js used on your project, then the binding needs to be rebuild so that node-sass can be imported and executed from your code. Once the rebuild is finished, run the project again. Once done, you should be able to run the project without any errors.
<57. Node-sass is a library that provides binding for Node. js to LibSass, the C version of the popular stylesheet preprocessor, Sass. It allows you to natively compile . scss files to css at incredible speed and automatically via a connect middleware.
I did below to resolve the issue.
npm uninstall node-sass npm i node-sass npm rebuild node-sass
remove node-sass
from your command and just run npm rebuild --force
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With