This command is also in the readme of nvm, however I put it here on my blog so I don’t have to search the readme and previously google for the readme 😉
1 |
nvm install 'lts/*' --reinstall-packages-from=current |
and then set this version to be the default version
1 |
nvm alias default node |
For the record, a link to the readme of nvm