-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Labels
feature requestsI want a new feature in nvm!I want a new feature in nvm!
Description
It would be helpful to have a convenience nvm command - e.g., nvm upgrade <newVersion> [<oldVersion>] - that bundles the following 3 operations, so as to facilitate upgrading a locally installed version:
- install new Node.js version
<newVersion> - copy global packages from version
<oldVersion>, which defaults to the latest already-installed version with the same major and minor version as<newVersion> - uninstall
<oldVersion>
In other words: this command would provide in a single operation what currently requires 3 commands in sequence: nvm install, nvm copy-packages, nvm uninstall.
If any step fails, processing should abort with an error message that provides hints as to what commands to use to complete the steps manually later.
Not finding an already-installed <oldVersion> (whether explicitly specified or implied) should be considered an error.
Metadata
Metadata
Assignees
Labels
feature requestsI want a new feature in nvm!I want a new feature in nvm!