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

Help text for volta uninstall --help incorrectly states node versions can be uninstalled #1563

Closed
nifr opened this issue Oct 24, 2023 · 4 comments · Fixed by #1628
Closed

Comments

@nifr
Copy link

nifr commented Oct 24, 2023

Steps to reproduce:

volta uninstall --help

Shows the following: ( node is the first suggested tool that can be uninstalled )

[..]
ARGS:
    <tool>    The tool to uninstall, e.g. `node`, `npm`, `yarn`, or <package>

If we try to uninstall a node version volta shows an error.

volta uninstall node

Output/Error:

error: Uninstalling node is not supported yet.

If we attempt to uninstall a concrete node version volta shows a different error.

volta uninstall [email protected]

Output/Error:

warning:  No package '[email protected]' found to uninstall

Question: Is it still planned to implement uninstallation of node versions installed by volta?
Question: Is it possible to uninstall a node version installed with volta manually (for now)? If yes - how?

@mauudev
Copy link

mauudev commented Nov 11, 2023

any updates on this? I'm also playing around with this and can't unistall a node version :/

@JawilX
Copy link

JawilX commented Nov 28, 2023

me too. Is this tool no longer maintained?

@chriskrycho
Copy link
Contributor

It's maintained, but we've all been busy. This one is a case where we thought we would implement that feature and then… have not yet been able to! See #327. A welcome change here would be just updating the help text via the comment here – we can get that merged very quickly. (Or one of us might hopefully also be able to get there, but we're much likelier to merge a PR than to open it ourselves at the moment.)

MrChocolatine added a commit to MrChocolatine/volta that referenced this issue Dec 26, 2023
MrChocolatine added a commit to MrChocolatine/volta that referenced this issue Dec 26, 2023
MrChocolatine added a commit to MrChocolatine/volta that referenced this issue Dec 26, 2023
At the time of writing this, uninstalling this tool is not supported:

```
➜ volta uninstall node
error: Uninstalling node is not supported yet.
```

Resolves volta-cli#1563
MrChocolatine added a commit to MrChocolatine/volta that referenced this issue Dec 26, 2023
At the time of writing this, uninstalling this tool is not supported:

```
➜ volta uninstall npm
error: Uninstalling npm is not supported yet.
```

Resolves volta-cli#1563
@MrChocolatine
Copy link
Contributor

MrChocolatine commented Dec 26, 2023

@nifr

Question: Is it possible to uninstall a node version installed with volta manually (for now)? If yes - how?

@mauudev

any updates on this? I'm also playing around with this and can't unistall a node version :/

To manually uninstall a version you need to delete:

  • $HOME/.volta/tools/image/< TOOL >/< VERSION >/
  • $HOME/.volta/tools/inventory/< TOOL >/< VERSION >

For instance, say I execute:

volta install node@16

to uninstall this version I would need to manually delete:

  • $HOME/.volta/tools/image/node/16.20.2/
  • $HOME/.volta/tools/inventory/node/node-v16.20.2-darwin-arm64.tar.gz
  • $HOME/.volta/tools/inventory/node/node-v16.20.2-npm

MrChocolatine added a commit to MrChocolatine/volta that referenced this issue Dec 31, 2023
At the time of writing this, uninstalling this tool is not supported:

```
➜ volta uninstall node
error: Uninstalling node is not supported yet.
```

Resolves volta-cli#1563
MrChocolatine added a commit to MrChocolatine/volta that referenced this issue Dec 31, 2023
At the time of writing this, uninstalling this tool is not supported:

```
➜ volta uninstall npm
error: Uninstalling npm is not supported yet.
```

Resolves volta-cli#1563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants