Newby Coder header banner

NodeJs Installation

Install Nodejs and npm in Linux

Enter following commands to install Node.js v14.x

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

Check Node.js distributions page for other versions

npm is installed with Node.js

Check nodejs and npm versions to verify if they are installed

nodejs -v
npm -v

Install Nodejs and npm in Mac

Visit https://nodejs.org/en/download/

Download a .pkg installer

After downloading click to open it and follow installation instructions

npm is installed with Node.js

Check nodejs and npm versions to verify if they are installed

nodejs -v
npm -v

Windows