Node.js and NPM installation
NPM is the package manager for the Node.js . To put it simply - it allows us to easily find any package / plugin / software etc. and install it in our project.
Installing both of these things is very simple. Just follow the steps listed below.
node -v and
npm -v . If the terminal shows you the version numbers, it means they are already installed. Otherwise, follow the steps below.
Go to the https://nodejs.org/ and click the button to download it.
You will see 2 buttons there - LTS on the left, and Current on the right. It does not really matter what version do you chose, but just to simply not to overthink it choose the version on the right ("Current").
Once downloaded, run the file, accept the terms and just click "Next" until the installation is complete.
After the installation is complete, you can see the terminal window as in the screenshot below. Click any button to proceed.
Now let's check if the installation was successful. Launch the terminal (if you are using Windows, type "cmd" in the system search and run Command Line app / on MacOS, search for the "terminal" application).
node -v in the terminal and click enter. You should see the version of the installed node.js software like on the screen below (note your version may be different as an update may have come out since this tutorial was published).
Node.js and NPM are installed together, so there is no need to perform additional steps for installing NPM. To make sure that NPM has also been properly installed, type the
npm -v command and see if the terminal shows you the version number.
Co Founder at MDBootstrap / Listed in Forbes „30 under 30" / Open-source enthusiast / Dancer, nerd & book lover.
Author of hundreds of articles on programming, business, marketing and productivity. In the past, an educator working with troubled youth in orphanages and correctional facilities.