nvm alias default lts/*

Category: Node.js & npm/yarn

nvm alias default lts/*

Set the latest LTS as your default Node.js version for new sessions

Sets the latest installed LTS version as your default. The lts/* wildcard always resolves to the most recent LTS.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.