close

[Solved] node-sass: Command failed

I am trying to run my Vue project But I am facing a sass error: node-sass: Command failed in VueJS. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start with This Article.

How node-sass: Command failed Error Occurs?

I am trying to run my Vue project But I am facing a sass error:

node-sass: Command failed

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve node-sass: Command failed Error?

  1. How To Solve node-sass: Command failed Error?

    To Solve node-sass: Command failed Error for yarn users, first of all, remove node-sass by running this command in your terminal: yarn remove node-sass And then install sass by running this command: yarn add node-sass And now, Your error must be solved. Thanks.

  2. node-sass: Command failed

    To Solve node-sass: Command failed Error You Just need to install or update sass with the following command. First of all, you need to uninstall sass. If You are using npm then run this command in your terminal: npm uninstall node-sass Then Delete node_modules folder: npm uninstall node_modules And now You can install Node-sass with this command: npm i node-sass And Now, Your error must be solved.

Solution 1: Install/update sass

To Solve node-sass: Command failed Error You Just need to install or update sass with the following command. First of all, you need to uninstall sass. If You are using npm then run this command in your terminal.

For Npm Users

npm uninstall node-sass

Then Delete node_modules folder.

npm uninstall node_modules

And now You can install Node-sass with this command.

npm i node-sass

And Now, Your error must be solved.

Solution 2: For Yarn Users

If You are using yarn then first of all remove node-sass by running this command in your terminal.

yarn remove node-sass

And then install sass by running this command.

yarn add node-sass

And now, Your error must be solved. Thanks.

Conclusion

It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment