How to Install Nodejs
Table of Contents
Install Nodejs in specific platforms
Install Nodejs in Ubuntu
Open the terminal and run the following commands:
terminal
sudo apt install nodejs
Install Nodejs in Ubuntu using GUI
- Open the Ubuntu Software Center
- Search for nodejs
- Click on Install
- Restart your computer
- Open the terminal and run the following command to check if nodejs is installed
terminal
node -v
Install Nodejs in Windows
Install Nodejs using only terminal
Open the terminal and run the following commands:
- first install chocolatey - a package manager for Windows
terminal
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- then install nodejs
terminal
choco install nodejs
Install Nodejs using GUI
- Download the installer from Nodejs
- Run the installer
- Follow the steps in the installer
- Restart your computer
- Open the terminal and run the following command to check if nodejs is installed
terminal
node -v
Install Nodejs in MacOS
Install Nodejs using only terminal
Open the terminal and run the following commands:
- first install homebrew - a package manager for MacOS
terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- then install nodejs
terminal
brew install node
Install Nodejs using GUI
- Download the installer from Nodejs
- Run the installer
- Follow the steps in the installer
- Restart your computer
- Open the terminal and run the following command to check if nodejs is installed
terminal
node -v
Subscribe For Updates