In this post, I will show you how to download and install node.js and NPM on windows 10.
What is Node.js?
Node.js is a run-time environment that includes everything you need to execute a program written in JavaScript. It runs scripts on the server to render content before it is delivered to a web browser.
What is NPM?
NPM stands for Node Package Manager, an application and repository for developing and sharing JavaScript code.
This article will help you install Node.js and NPM on a Windows 10
How to Install Node.js and NPM on Windows
Download and install Node.js
First, we need to download the Node.js installer, so navigate to this link https://nodejs.org/en/download/ and click on the Window Installer button to download the latest default version.
Note: There are other versions available. If you have an older system, you may need the 32-bit version. You can also use the top link to switch from the stable LTS version to the current version and If you are new to Node.js or don’t need a specific version, so choose LTS.
Install Node.js and NPM
Step 1) Once the download is completed, open the Node.js installer and click Next.
Step 2) Review the license agreement. Click Next if you agree to the terms and install the software.
Step 3) On this screen if you want to change the Node.js installation location then click on change and put your desired location where you want to install Node.js and click on next
Step 4) Select the default components from here and as you can see we have the NPM package manager component available which means this setup will also install NPM by default, so you don’t need to install NPM separately.
Step 5) Check the box here if you want to automatically install the necessary tools, if you don’t want to check it leave it empty and click on Next.
Step 6) Now click on the Next to start installing the Node.js.
Step 7) Wait for the installation to finish.
Step 8) Congratulations you have successfully installed Node.js on your PC, now click on finish.
Step 9) We have installed Node.js and now we need to confirm the installation of Node.js & NPM.
So open your Command Prompt and type node -v for Node.js & npm -v for NPM, if these commands return the version code then it means that you have installed Node.js & NPM correctly.