install node js ubuntu

To install Node.js on Ubuntu, follow these steps:

  1. Open the terminal by clicking on the "Dash" icon and typing "Terminal" in the search bar. Press Enter to open the terminal.

  2. Update the package index by running the following command: sudo apt update

  3. Install the required dependencies by running the following command: sudo apt install curl

  4. Download the Node.js installation script using curl: curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

  5. Once the script is downloaded, you can install Node.js by running the following command: sudo apt install nodejs

  6. Verify the installation by checking the Node.js and npm (Node Package Manager) versions: node -v npm -v

Congratulations! You have successfully installed Node.js on your Ubuntu system.