Last updated 4 months ago
Open a terminal and install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
Restart the terminal or run:
source ~/.bashrc
Install Node.js LTS version
nvm install --lts
Set the default Node.js verison (optional)
nvm use --lts
Check the Node.js Version:
node -v
output should be similar to:
v22.12.0
Check the npm version:
npm
npm -v
Output should be similar to:
10.9.0
Visit the .
Download the Windows Installer (.msi) or macOS Installer (.pkg) fir the desired version (LTS or Current)
.msi)
.pkg
Open the downloaded .msi or .pkg file.
.msi
Follow the installation wizard, ensure npm is selected for installation.
Open Command Prompt, Powershell or Terminal and run:
node -v npm -v