Skip to content
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

Unclear how to remove Node.js version #855

Closed
ai opened this issue Oct 21, 2020 · 3 comments
Closed

Unclear how to remove Node.js version #855

ai opened this issue Oct 21, 2020 · 3 comments

Comments

@ai
Copy link

ai commented Oct 21, 2020

volta help uninstall does not show an example of how to remove a specific Node.js version.

All obvious ways do not help:

➜ volta list node
⚡️ Node runtimes in your toolchain:

    v10.22.1
    v12.19.0
    v14.14.0 (default)
    v15.0.0

➜ volta list uninstall [email protected]
error: Found argument '[email protected]' which wasn't expected, or isn't valid in this context

USAGE:
    volta list [FLAGS] [OPTIONS] [tool]

For more information try --help

➜ volta list uninstall node 10.22.1
error: Found argument 'node' which wasn't expected, or isn't valid in this context

USAGE:
    volta list [FLAGS] [OPTIONS] [tool]

For more information try --help

➜ volta list uninstall node v10.22.1
error: Found argument 'node' which wasn't expected, or isn't valid in this context

USAGE:
    volta list [FLAGS] [OPTIONS] [tool]

For more information try --help
@charlespierce
Copy link
Contributor

Hi @ai, thanks for asking! We don't currently have a method to prune out the cached versions of tools, though we have an existing issue tracking that #330. Can you expand a bit on your use-case? Are you primarily looking to clean up the disk space used by different versions? Or is there another motivating factor in wanting to remove older versions?

@ai
Copy link
Author

ai commented Oct 21, 2020

Yeap, the main use case is just for keeping my desktop system clean

@charlespierce
Copy link
Contributor

Okay, in that case I think tracking #330 or #327 which is related but not quite the same would be your best bet. Short-term, you can safely delete any of the (version-numbered) directories within ~/.volta/tools/image/node/ (%LOCALAPPDATA%\Volta\tools\image\node\ on Windows) to remove that version of Node from your system. If Volta comes across a package that uses that version in the future, it will be re-installed, so there shouldn't be any danger in deleting them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants