NodeJS
Install and manage Node.js locally (Windows, macOS, Linux) using an installer, package manager, or version manager.
🧾 Overview
Node.js runs JavaScript outside the browser for CLIs, APIs, workers, scheduled tasks, and real‑time services. Local installation lets you:
Install dependencies (npm, pnpm, or Yarn)
Run and debug before deploying to Discloud
Prepare builds or bundles where needed
📥 Installation
Pick your operating system, then one method. Version managers (NVM) help when switching projects.
Open https://nodejs.org/en/download and download the LTS .msi
Run installer (keep defaults incl. npm + PATH)
Reopen terminal & verify
node -v
npm -vchoco install nodejs-lts -y
node -v
npm -vDownload latest nvm-setup.exe from releases
Install accepting defaults
Install & use LTS
nvm install lts
nvm use lts
node -v
npm -vsudo apt update
sudo apt install -y nodejs npm
node -v
npm -vsudo dnf install -y nodejs npm
node -v
npm -vsudo pacman -S --needed nodejs-lts-hydrogen npm
node -v
npm -vcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
source ~/.bashrc 2>/dev/null || source ~/.zshrc 2>/dev/null
nvm install --lts
nvm use --lts
nvm alias default lts/*
node -v
npm -vDownload LTS .pkg from nodejs.org then:
node -v
npm -vbrew update
brew install node
node -v
npm -vcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
source ~/.zshrc 2>/dev/null || source ~/.bashrc 2>/dev/null
nvm install --lts
nvm use --lts
node -v
npm -v🔄 Updating Node.js
If you're using NVM, you can update Node.js with:
nvm install stableOtherwise, use your system's package manager or re-download the latest installer from the Node.js website.
Last updated