Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+7 votes
in Big Data Hadoop & Spark by (50.2k points)

I had installed Yarn for some demo. Now I am trying to run a react project using npm but by default, it always changes to Yarn. I don't need Yarn now, so I want to uninstall it. I tried the following command but it did not work:

sudo apt-get remove yarn && sudo apt-get purge yarn

How can I do it? 

1 Answer

+9 votes
by (108k points)

This is happening because you didn't use apt-get to install Yarn. You first have to uninstall it using the same package manager that you had used during your installation. 

For example, if you have used brew:

brew uninstall yarn

If you have used npm:

npm uninstall -g yarn

Browse Categories