volta icon indicating copy to clipboard operation
volta copied to clipboard

Cannot uninstall yarn

Open ontoneio opened this issue 3 years ago • 4 comments

I was needing yarn right quick for a project inspection and then I was going to uninstall. To my surprise I was met with this message from volta. error: Uninstalling yarn is not supported yet.

Hopefully this isn't intentional. 🥲

Thanks!

ontoneio avatar Jan 26 '23 17:01 ontoneio

Hi @ontoneio, for the special-cased tools like npm, node, and yarn, with Volta's model, the action uninstall is actually poorly named. It's probably closer to clearing a cache, since Volta will always re-download a tool if it's needed. Due to that, we haven't yet implemented the cache cleaning operation. We do have an issue tracking this already: #330

Please track issue for updates!

charlespierce avatar Jan 30 '23 22:01 charlespierce

Ran into this as well!

Even when I remove all files for yarn inside ~/.volta using for example:

find ~/.volta -name yarn -delete

It auto-installs with yarn --version.

fev4 avatar Feb 24 '23 16:02 fev4

so, if I have volta there is no way that I can remove yarn from my computer without removing volta? basically all I need is to remove yarn from the Path

alissawix avatar Nov 20 '23 07:11 alissawix

Already an old issue, but also for my personal reference:

You can use this command to see in which folder yarn is installed: volta list yarn

which will give you a folder in the "AppData" e.g.

C:\Users\currentuser\AppData\Local\Volta\tools\image\yarn\4.9.3\bin\yarn.cmd

For which you can then just remove the version you want to get rid of, in this case just remove the whole "4.9.3" directory.

MathieuMarchant avatar Aug 25 '25 13:08 MathieuMarchant