nvm: Setting a default Node.js version

Posted . Visible to the public. Repeats.

To set a default Node version for new shells, use nvm alias default <VERSION>:

nvm alias default 1.2.3

I like to use the most recent LTS version Show archive.org snapshot as my default:

nvm alias default lts/erbium
Henning Koch
Last edit
Henning Koch
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2020-02-25 12:35)