Node.JS
- Homepage
Installing Node.js
There are several ways to install Node.js on your system, including using a package manager, downloading the installer from the Node.js website, or using a version manager like nvm
.
Package Manager
nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
nvm install <version>
fnm (Fast Node Manager)
curl -fsSL https://fnm.vercel.app/install | bash
source ~/.bashrc
fnm use --install-if-missing <version>
Homebrew (macOS)
brew install node@<version>
Chocolatey (Windows)
choco install nodejs
Docker
docker pull node:<version>-alpine
Get the latest version in terminal
curl -s https://nodejs.org/dist/index.json | jq -r '.[0].version' | sed 's/v//'
Last modified: 29 December 2024