Wednesday, June 20, 2018

How to install Node JS using NVM

How to install Node JS using NVM

The best way to install Node JS on lubuntu (and linux in general) is by using NVM (Node Version Manager), because you can get the latest stable Node JS as well as the future release of Node JS with NVM, so it's more flexible to switch from one version to another. In this article i will show you how to install Node JS via NVM.

Step by step how to install Node JS using NVM
  • run update command
  • sudo apt-get update
  • install build essential
  • sudo apt-get install build-essential
  • install curl
  • sudo apt-get install curl
  • download nvm using curl
  • wget -qO- | bash
  • run source ~/.bashrc command
  • source ~/.bashrc
  • test nvm command, make sure it's working
  • nvm -v
  • install node JS (LTS)
  • nvm install --lts
  • done!

Using NVM, you can also install Node JS with specific version, like this:
nvm install v8.11.3


  1. This comment has been removed by a blog administrator.

  2. This information really worth saying, I think you are master of the content and thank you so much sharing that valuable information and get new skills after referring that post.