Skip to main content

Environment Setup

  • We will be making use of our terminal a lot

Installing the Node Run Time Environment

nvm --version
  • Install the latest available version
nvm install node
  • Use the latest version
nvm use node
  • Install the latest LTS version
nvm install --lts 
  • Use the latest LTS version
nvm use --lts                        

Installing Text Editor and Git

Running and Executing Code

  • Open your terminal
  • Create a directory or folder
mkdir folderName
  • Change into that folder
cd folderName
  • Create a file with an extention js
touch fileName.js
  • Open it with a text editor
code . 
  • Write your code
console.log("Hello World")
  • Run it on the terminal with node run time environment
node fileName.js 
  • press Enter and you see!!!
Hello World