Cannot uninstall yarn
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!
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!
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.
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
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.