Language: EN

como-instalar-node-nodejs

How to install Node.js

Let’s see how to install Node.js on your computer. It’s actually pretty easy 😉

In addition to the methods we are going to see, there are a few more. There’s something for everyone! You have all the necessary documentation on the official page Node.js — Download.

Installing Node.js

Installation on Windows

Go to the official Node.js website and download the Node.js installer for Windows, in ‘Prebuilt Installer”.

nodejs-prebuilt-installer

Once downloaded, run the installer. Follow the installation wizard instructions and accept the terms of the license agreement.

node-js-install-wizard

Just follow the wizard’s instructions. Literally, next, next, next… couldn’t be easier. Done! You have Node.js installed on your system.

Installation on Linux (Ubuntu)

In Ubuntu and other Debian-based distributions, you can install Node.js and NPM from the apt package manager:

sudo apt update
sudo apt install nodejs npm

Installation on MacOS

If you have Homebrew installed, you can easily install Node.js with:

brew install node

Verify the installation

In any case or operating system, the first thing you need to do after installing Node.js is to verify the tool. It almost always works, but… just in case.

To verify that Node.js has been installed correctly, open the command line (CMD) and type,

node -v

It will return something like this, indicating the installed version.

v20.9.0

This should display the version of Node.js installed. To verify NPM, type:

npm -v