Page cover image

How to Install Node Js

Installing Node.js on Windows

  1. Go to the official Node.js website (https://nodejs.org/en/).

  2. Click the “Download” button.

  3. Choose the “Windows Installer” option.

  4. The installation file will download to your computer.

  5. Double-click the downloaded file and follow the steps in the installation wizard to complete the installation.

Installing Node.js on MacOS

  1. Go to the official Node.js website (https://nodejs.org/en/).

  2. Click the “Download” button.

  3. Choose the “macOS Installer” option.

  4. The installation file will download to your computer.

  5. Double-click the downloaded file and follow the steps in the installation wizard to complete the installation.

Installing Node.js on Linux

  1. Open a terminal window.

  2. Type the following command:

  3. curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - (Replace 14.x with the version of Node.js you want to install)

  4. Type the following command: sudo apt-get install -y nodejs

Note: The steps to install Node.js on Linux may vary depending on the distribution you're using. For more information, refer to the official Node.js documentation.

After the installation is complete, you can verify the installation by opening a terminal window and typing node -v. This should display the version number of Node.js that you have installed.

Last updated