Skip to content

Option to set --lts as default #1217

@metasean

Description

@metasean

To install the latest long term support version the command is:

nvm install --lts

If I do a fresh install, then close and reopen my terminal then run: nvm version
I get: none

To set a default Node version to be used in any new shell, use the alias 'default':

nvm alias default node

But if I run: nvm alias default --lts, nvm alias default lts/*, or nvm alias default lts then I get Unsupported option "--lts"., default -> lts/* (-> N/A), & default -> lts (-> N/A) respectively.

How do I set the LTS version to be the default version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions