lscpu # aarch64
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y nodejs
sudo apt-get install -y npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm install --lts # Install the latest LTS version
npm install -g npm@latest
npm install -g pnpm
# Current versions
node -v
v18.12.1
npm -v
9.2.0
pnpm -v
7.18.1