Install Node+Yarn+NPM

nodejsInstall Node 8.10+8.17+Yarn+NPM3.5 to 6.13

  • sudo apt update 
  • sudo apt install -y nodejs
  •  nodejs --version
  • sudo apt install npm
  • npm --version
  • curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
  • curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  • echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  • sudo apt-get update && sudo apt-get install yarn
  • sudo apt-get install -y nodejs
  • node --version
  • npm --version
  • curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && echo"deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  • sudo apt update
  • sudo apt install -y yarn
    

Check your website your node project is working 🙂 🙂

Updated node latest version 10 and 12

  • sudo apt update
  • sudo apt upgrade
  • sudo apt-get install curl python-software-properties 
  • curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
  • curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
  • sudo apt-get install -y nodejs
  • sudo apt-get install build-essential
  • node -v