-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support volta uninstall
for node and yarn
#327
Comments
In a little discord discussion around the possibility to uninstall yarn and node, a little idea came up:
maybe worth trying 🤷 |
notion uninstall
for node and yarnvolta uninstall
for node and yarn
Hi all 👋 is there an alternative way to do this manually while waiting for the RFC to be done? For example, if I'm not using
Thank you. |
@dwiyatci Yep, that's exactly what you'd need to do to reclaim the space: The first directory is the unpacked install, while the 2nd is the cached tarball. Possibly important caveat: After deleting, if you come across that version again in a project, it will be automatically re-downloaded (in the same way that they're automatically downloaded the first time they are seen). |
Recently node upped from 18.0.0 to 18.1.0 and i just "updated" it so i have no great reason to keep the 8.flat version, so i was looking to unninstall it just to don't have a massive list of leftovers, maybe based on "volta uninstall" we can also get a "volta prune"? so it deletes the minor releases?
|
I've made a small utility to remove unused Node versions from Volta: |
@hxii I love the "Disclaimer" section 😃 |
For any Windows users who end up here, the equivalent folder to You can delete the mentioned folders in the same way. |
Friendly bump, after nearly 3 years. This would be a great addition. |
No solution yet? Unfortunately, I will have to move away from Volta because of this. I do not want yarn v4 installed by default and I do not want to pin files in someone else's project either. |
Hi @NayamAmarshe, can you clarify the trouble you’re running into? Volta doesn’t install anything by default: It runs what it determines is the appropriate version of a tool. It figures that out by looking in 2 places: Pinned in the current project or explicitly selected as the global default by you. Volta will only use Yarn 4 if you choose that version (either as your default or if a project chooses it). Currently, there is an issue where Yarn 4 is published as the Lastly, the nature of Volta’s “fetch on-demand” model means that “uninstall” isn’t really the proper analogy for this command. It’s really closer to “cache clean” since the appropriate version will be redownloaded as necessary. |
Thank you, it's actually my fault that I forgot I could do
I think behind the scenes you could do anything but showing "Uninstalling yarn is not supported yet" makes it seem like Volta has missing features and is incomplete. So, that's the only reason I'd like to request this. Thank you |
So my yarn is stuck at 3.x now and I can't uninstall it and installing yarn1 doesn't downgrade it to yarn 1.... volta what a mess. |
It's unacceptable that there is no way to uninstall, especially after three freaking years. |
4 years+ , this issue was created on 27 March 2019. Luckily there is a way to manually remove unwanted versions: |
Hey people! I was trying to remove Since Volta was still referencing
|
@algoflows I was able to go back to v1 by removing all versions except the v1.22 (#327 (comment)) and |
Not being able to uninstall Node is really frustrating...but there is no doubt that Volta is still a very great project. I wrote a The download, installation and management of Node are performed through the client interface, and command line tools are also provided to manage different versions. $ nvmd --help
nvmd (2.2.0)
[email protected]
command tools for nvm-desktop
Usage: nvmd [COMMAND]
Commands:
current Get the currently used version
list List the all installed versions of Node.js
ls List the all installed versions of Node.js
use Use the installed version of Node.js (default is global)
which Get the path to the executable to where Node.js was installed
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Please download new version of Node.js in nvm-desktop. Hope it helps you. (If this comment of mine makes you feel uncomfortable, please feel free to let me know and I will delete it promptly.) |
It's almost 2024 |
It's true! And maybe in 2024 someone will fund the work to get this both designed and implemented; that would be awesome! 😅 |
Happy new year 2024! 🤚 I couldn't understand why this has not been implemented for so many years, so I created a simple implementation for discussion. |
Yay! Finally! I hope they merge this! It's been 5 years! |
Thank you! At a basic level, the only reason it has not been implemented is that we’re all super busy and none of our employers has had the need for it so it has not gotten our time and attention (as you can see from looking at our activity level, it is “squeeze in maintenance in spare time because we care” mode… like me doing a bunch of triage on a Saturday morning!). I will look at that POC either later today or sometime early next week, but I am EXCITED!!! about the prospect of it landing. |
|
This solution is too Muggle, I have already used NVM |
|
I just don't think it's elegant enough. Thank you for your reply |
hope it's added soon. |
I initially thought there was an issue with my Volta installation when I came across this thread. It seems that the |
Yep, agreed. That message is fixed in the upcoming release! (When? Soon, hopefully!) |
Version 2.0.1 still does not support it. |
Similar to #319 - since we have
volta install
for Node and Yarn, we should also supportvolta uninstall
.The text was updated successfully, but these errors were encountered: