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.
Then, install Node.
Step 2 – Verify the Installation
Run the following command to verify the Node installation.
This should result in the Node version installed in your system.
Verify the NPM installation.
Step 3 – Install build tools
Install the optional build tools for native addons.
That’s it. You have installed the Node.js in your Ubuntu system.