Installing a specific Node.js version
Reviewing the available versions of Node.js
Executed:
ubuntu@ouvm4:~$ nvm ls-remote
...
v20.15.0 (LTS: Iron)
v20.15.1 (LTS: Iron)
v20.16.0 (LTS: Iron)
v20.17.0 (LTS: Iron)
v20.18.0 (LTS: Iron)
v20.18.1 (Latest LTS: Iron)
v21.0.0
v21.1.0
v21.2.0
v21.3.0
v21.4.0
v21.5.0
v21.6.0
v21.6.1
v21.6.2
v21.7.0
v21.7.1
v21.7.2
v21.7.3
v22.0.0
v22.1.0
v22.2.0
v22.3.0
v22.4.0
v22.4.1
v22.5.0
v22.5.1
v22.6.0
v22.7.0
v22.8.0
v22.9.0
v22.10.0
v22.11.0 (LTS: Jod)
v22.12.0 (Latest LTS: Jod)
v23.0.0
v23.1.0
v23.2.0
v23.3.0
The latest LTS version was v22.12.0
Installing the latest LTS version
Executed:
ubuntu@ouvm4:~$ nvm install --lts
Installing latest LTS version.
Downloading and installing node v22.12.0...
Downloading https://nodejs.org/dist/v22.12.0/node-v22.12.0-linux-arm64.tar.xz...
######################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v22.12.0 (npm v10.9.0)
Creating default alias: default -> lts/* (-> v22.12.0)
Result
Executed:
ubuntu@ouvm4:~$ node -v
v22.12.0
ubuntu@ouvm4:~$ npm -v
10.9.0
ubuntu@ouvm4:~$ nvm list
-> v22.12.0
default -> lts/* (-> v22.12.0)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v22.12.0) (default)
stable -> 22.12 (-> v22.12.0) (default)
lts/* -> lts/jod (-> v22.12.0)
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 (-> N/A)
lts/hydrogen -> v18.20.5 (-> N/A)
lts/iron -> v20.18.1 (-> N/A)
lts/jod -> v22.12.0
Node.js v22.12.0 got installed and became the default version.