Install newer nodejs on RaspberryPiOS

2022-01-23

The default node version is 12 on RaspberrPiOS.

$ node -v
v12.22.5

n command can be used for install another version of node.

sudo apt install npm
sudo npm install -g n
sudo n lts
hash -r
$ node -v
v16.13.2