Skip to content
Home » Blog » React Series #00: How to install Node in Mac, Linux, and Windows

React Series #00: How to install Node in Mac, Linux, and Windows

Learn how to install node package in your computer.

Install Node in Linux

Run these commands one after the other to install nodejs in your Linux machine

sudo apt update
sudo apt install nodejs
node -v
sudo apt install npm

Install node in your Mac Machine:

Run these commands one after the other in the terminal:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
nvm install 20
node -v
npm -v

Install node in your Windows

Use PowerShell and run these commands

winget install Schniz.fnm
fnm env --use-on-cd | Out-String | Invoke-Expression
fnm use --install-if-missing 20
node -v
npm -v

The official Node.js Package Manager URL to help with the installation.

https://nodejs.org/en/download/package-manager

Leave a Reply

Your email address will not be published. Required fields are marked *