Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+7 votes
4 views
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 (107k 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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...