Skip to content

Commit a1601ed

Browse files
Rockheungljharb
andcommitted
[readme] add examples of setting specific versions as default
Co-authored-by: heungjun.park <rockheung@gmail.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 324b81a commit a1601ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,9 @@ nvm deactivate
499499
To set a default Node version to be used in any new shell, use the alias 'default':
500500

501501
```sh
502-
nvm alias default node
502+
nvm alias default node # this refers to the latest installed version of node
503+
nvm alias default 18 # this refers to the latest installed v18.x version of node
504+
nvm alias default 18.12 # this refers to the latest installed v18.12.x version of node
503505
```
504506

505507
#### Use a mirror of node binaries

0 commit comments

Comments
 (0)