Skip to content

Convenience installation feature for upgrading an installed Node.js version #538

@mklement0

Description

@mklement0

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions