+8 votes
1 view
in Big Data Hadoop & Spark by (50.5k 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

+10 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...