Top 5 node frameworks

How to Download and Install Node.js – NPM on Ubuntu

To install Node.js and NPM on Ubuntu, follow the steps mentioned below:

Step 1 – Install Node

Open your terminal and run the following commands.

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

Then, install Node.

sudo apt-get install -y nodejs

Step 2 – Verify the Installation

Run the following command to verify the Node installation.

node -v

This should result in the Node version installed in your system.

Verify the NPM installation.

npm -v

Screenshot from 2019-06-07 12-49-33

Step 3 – Install build tools

Install the optional build tools for native addons.

sudo apt-get install -y build-essential

That’s it. You have installed the Node.js in your Ubuntu system.

Shahid

Founder of Codeforgeek. Technologist. Published Author. Engineer. Content Creator. Teaching Everything I learn!

Related Posts

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.