Installation

Linux

nvm

Using nvm

Snap

Using snap

sudo snap install node --classic
sudo snap refresh node --classic

APT

WARNING

May not be the latest stable release

Update system with apt

sudo apt install npm -y
sudo apt upgrade npm -y

Windows

Chocolatey

Note

Package is maintained by a third party

Install chocolatey
Run powershell as admin

choco install nodejs-lts -y
choco upgrade nodejs-lts -y

WinGet

Note

Package is maintained by a third party

Install winget

winget install OpenJS.NodeJS.LTS
winget upgrade OpenJS.NodeJS.LTS

Updating

npm install -g npm

Version

# Check version 
node -v 
npm -v

Appendix