Posted on Leave a comment

Installing the latest version of NodeJS – Short Guide

Windows Install

  1. Visit the official Node.js website: https://nodejs.org/
  2. Click on the “Download” button on the homepage to start the download process.
  3. Choose the appropriate package for your operating system. For example, if you’re using Windows, select the “Windows Installer” option.
  4. Run the downloaded file and follow the installation wizard instructions.
  5. Once the installation is complete, open a command prompt or terminal window and type “node -v” to verify that Node.js has been successfully installed.
  6. You can also check the version number of npm, the Node.js package manager, by typing “npm -v”

Linux Install

  1. Open a terminal window by pressing “Ctrl + Alt + T” or by searching for “Terminal” in the applications menu.
  2. Update the package list and upgrade the system packages by running the following commands:
sudo apt-get update
sudo apt-get upgrade
  1. Install the curl command-line utility if it’s not already installed by running:
sudo apt-get install curl
  1. Download and add the Node.js PPA (Personal Package Archive) to your system’s package sources list using the following command:
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

This command will download and execute a script that adds the PPA to your system.

  1. Once the PPA is added, install the latest version of Node.js and npm by running:
sudo apt-get install -y nodejs
  1. Verify that Node.js and npm have been successfully installed by running the following commands:
node -v
npm -v

These commands will display the version numbers of Node.js and npm respectively.

Congratulations, you have successfully installed the latest version of Node.js on your Debian-based Linux distribution! If you encounter any issues during the installation process, refer to the official Node.js documentation or seek help from the Node.js community.

Mac OS Install

  • Open a web browser and visit the official Node.js website: https://nodejs.org/
  • Click on the “Download” button on the homepage to start the download process.
  • Choose the appropriate package for macOS.
  • Double-click on the downloaded package file to start the installation process.
  • Follow the prompts in the installation wizard to complete the installation.
  • Once the installation is complete, open the Terminal application by searching for it in Spotlight or by navigating to Applications > Utilities > Terminal.
  • Verify that Node.js and npm have been successfully installed by running the following commands in the terminal:
node -v
npm -v

These commands will display the version numbers of Node.js and npm respectively.

Congratulations, you have successfully installed the latest version of Node.js on your macOS! If you encounter any issues during the installation process, refer to the official Node.js documentation or seek help from the Node.js community.