How to install Node.js and Npm in Ubuntu 18.04 from nodejs.org?

Today I will share with you guys how to install Node.js and Npm version 12.6.0 (LTS) in Ubuntu 18.04. If you want to install different Node.js version download the other version from nodejs.org too.

  1. Create a download folder
    $ mkdir /home/user/download
    $ cd /home/user/download
  2. Get the Node.js and Npm version 12.6.0
    $ curl https://nodejs.org/dist/v12.16.0/node-v12.16.0-linux-x64.tar.gz
  3. Install
    $ tar -xf node-v12.16.0-linux-x64.tar.gz –directory /usr/local –strip-components 1
  4. Verify the versions
    $ node -v
    $ npm -v

That’s it. I hope this will help. 🙂
Photo: Nodejs icon icon by Icons8

Leave a Reply

Your email address will not be published. Required fields are marked *