Build Fails: `npm rebuild node-sass --force`

GN. picture GN. · Nov 2, 2018 · Viewed 64.7k times · Source

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..

Answer

user2240097 picture user2240097 · Jul 17, 2019

remove node-sass from your command and just run npm rebuild --force