Categories
JavaScript Answers

How to fix build failing with `npm rebuild node-sass –force`?

Spread the love

Sometimes, we want to fix build failing with npm rebuild node-sass --force.

In this article, we’ll look at how to fix build failing with npm rebuild node-sass --force.

How to fix build failing with npm rebuild node-sass --force?

To fix build failing with npm rebuild node-sass --force, we reinstall node-sass.

To do this, we run

npm uninstall node-sass
npm i node-sass
npm rebuild node-sass

to uninstall node-sass with npm uninstall.

Then we reinstall it with npm i.

Finally, we rebuild it with npm rebuild.

Conclusion

To fix build failing with npm rebuild node-sass --force, we reinstall node-sass.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *