Open bbrk24 opened 10 months ago
It'd be easy to add, but I'm not sure a destructive action is something that should be more convenient.
Updating a minor version within the same major version is a common action for me (I like to keep up to date with my node installs), so maybe this is a bit of an XY problem. Perhaps instead there should be a command for "replace 20.9 with 20.10".
Yeah, that's a bit more motivated an ask - I do that too (for patch versions; i keep every node minor on my machine forever). Currently i run nvm install X --reinstall-packages-from=X
and then i manually nvm uninstall $previousX
. Perhaps something like nvm migrate X Y
, or something else?
Yeah, nvm migrate
could work. I'd also expect that to update aliases as well.
Here's an excerpt from my bash history:
npm rm
is a synonym fornpm uninstall
, so naturally I try the same thing fornvm
. Every single time, it barfs out a help string and I have to re-run the command with the full name. It would be more convenient if that alias existed.