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

uninstall a selected version causes error #292

Closed
ghost opened this issue Jul 8, 2015 · 4 comments

Comments

@ghost
Copy link

commented Jul 8, 2015

For example, I have node 0.12.5, 0.12.6 installed with n, and the current version of node I'm using is v0.12.5

$ n
    o node/0.12.5
      node/0.12.6

now I'm removing 0.12.5

$ n rm 0.12.5

and then I try to select another version

$ n
    node/0.12.6

I can't select v0.12.6, the only thing I can do is hit enter and return to the command line with nothing changed, then I discovered the node version I've just removed is still exist

$ node -v
v0.12.5

Still, I can change version with

$ n 0.12.6
@ghost

This comment has been minimized.

Copy link
Author

commented Jul 8, 2015

I've seen this issue before myself. I am looking into a fix.

@ghost ghost added bug limitation labels Jul 8, 2015

@maxrimue

This comment has been minimized.

Copy link
Contributor

commented Jul 20, 2015

I think n should just warn and abort if you try to remove the currently active version

@ghost

This comment has been minimized.

Copy link
Author

commented Jul 20, 2015

That's what I was planning on adding. A check against the active to make sure it's not removed before changing to a different version.

@maxrimue

This comment has been minimized.

Copy link
Contributor

commented Jul 20, 2015

@tedgaydos I'll register both 1.4.1 and 2.0.1 as releases quickly in the repo, then you can push the necessary changes and we could get out 1.4.2 and 2.0.2 if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.