How to Install Node Js
Installing Node.js on Windows
Go to the official Node.js website (https://nodejs.org/en/).
Click the “Download” button.
Choose the “Windows Installer” option.
The installation file will download to your computer.
Double-click the downloaded file and follow the steps in the installation wizard to complete the installation.
Installing Node.js on MacOS
Go to the official Node.js website (https://nodejs.org/en/).
Click the “Download” button.
Choose the “macOS Installer” option.
The installation file will download to your computer.
Double-click the downloaded file and follow the steps in the installation wizard to complete the installation.
Installing Node.js on Linux
Open a terminal window.
Type the following command:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
(Replace14.x
with the version of Node.js you want to install)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