I used Homebrew to install Node on Ubuntu 16.04.4 LTS:
brew install node
I'd like to use NodeJS version 18.8.0 or higher up to <20.0.0.
I therefore ran:
nvm install 18.18.2
However, I can't seem to get my desired NodeJS version:
user@server:~/test$ nvm use 18.18.2
Now using node v18.18.2 (npm v10.9.2)
user@server:~/test$ nvm --version
0.40.1
user@server:~/test$ node --version
v23.7.0
Here is the list of install NVM versions:
user@server:~/test$ nvm ls
v14.15.5
v16.20.2
v18.18.2
-> system
default -> node (-> v18.18.2)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v18.18.2) (default)
stable -> 18.18 (-> v18.18.2) (default)
lts/* -> lts/jod (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2
lts/hydrogen -> v18.20.7 (-> N/A)
lts/iron -> v20.18.3 (-> N/A)
lts/jod -> v22.14.0 (-> N/A)