To build scalable and fast server-side and network applications by using JavaScript programming language, Node.js is used. Node Js is lightweight (easy to implement and minimalist syntax features), efficient, event-driven, and the best thing about Node js is that it is a non-blocking model. One of the reasons for Node.js popularity is because of the Node.js package manager i-e NPM.
NPM or Node Package Manager is open source, free, and the largest Software library(containing over 800,000 code packages) in the world and is the default Package manager and installer for Node.js which is used for sharing software.
As mentioned earlier, Node.js runs in various environments, and today in this article the question of how to install Node.js in windows 10 will be answered.
Node Js Installation
Step 1: The first step in installation Node.js is to download the Node.js installer by going to the URL given below:
https://nodejs.org/en/download/
Once you open the above URL in your browser, you will see the Node.js official page where you will see the Windows Installer button. Click on it.
Keep in mind that the Node.js installer already has an NPM package manager. Once clicked your download will start.
Step 2: Once completed go to the Downloads folder on your computer and open the Node.js file. Welcome to the Node.js Setup screen where you have to click on the Next button.
Step 3: Next the License Agreement screen will be shown where you have to tick the accepting terms option and then click on the Next button:
Step 4: This step involves choosing a destination folder where Node.js will be installed. Once you have chosen your destination folder, click on the Next button:
Step 5: Now the custom setup screen will be shown where you can select components to include or remove from the installation which depends on your requirements. When you are done, click on the Next button:
Step 6: The next window that will be shown is the Native Modules window where you can click on the automatic installation of all the required tools for Node.js or leave it unticked. Click on the Next button:
Step 7: You can finally click on the Install button after which the installation will start:
Step 8: Once the installation is completed you will see the completed Node.js Setup Wizard on the screen after which you have to click on the Finish button:
Verify Installation
To verify the installation of Node.js, open command prompt (cmd) or Powershell in your Windows 10 and execute the below command:
Once you executed you will see the installed Node.js version:
We can also check for the NPM version for which we have to execute the below command:
Conclusion
Node.js, built on Google chrome’s v8 engine, serves as the server-side platform and was developed in 2009 by Ryan Dahl. Node.js 14.17.6 is the most recent stable version, and it comes with NPM by default. NPM or Node Package manager is the largest software library out there and is used for sharing software. Node.js uses JavaScript for developing applications. In this article, we taught you how to install Node.js on Windows 10 and then we verified it in the command prompt of Windows10.