Hello everyone, today we will discuss “How to install Node.js and npm on Windows“. Node.js has been a boon to JavaScript developers around the world who struggled with switching between different languages and frameworks to extend their code into a sustainable development environment.
With Node.js you can finally build web applications with bidirectional connections, where both the server and client sides can communicate and exchange data with each other in real time. Indeed, Node.js is revolutionary for developers who want to deploy real-time web applications over WebSocket.
Benefits of using Node.js –
Choosing the right programming platform for your tech stack is just as important as the work you choose to invest in. When looking for the benefits of a particular platform, you should consider several factors. Things like the learning curve, speed of development, community, and scope can change the overall balance of benefits.
Here are the key benefits of using Node.js: –
- Simple syntax
- Easy learning curve
- Rapidly scalable
- Open-source and flexible
- Cross-platform development
- Monolingual full-stack development
- communication in real-time
- Huge and active community
How to install Node.js and npm?
Each operating system has its own method of installing Node.js. The central installation file differs from operating system to operating system. However, the developers of Node.js made sure that you get the files you need for each system.
In the next part of the article, we’ll go over how to install Node.js on Windows.
1. Download Windows Installer
First, you need to download the Windows Installer (.msi) file from the Node.js official website. This MSI installer database contains a collection of installation files required to install, update or modify the existing Node.js version.
The installer also includes the Node.js package manager (npm) . This means you don’t have to install the npm separately.
Choose the correct version for your operating system when downloading. For example, if you’re using a 64-bit operating system, download the 64-bit version, and if you’re using the 32-bit version, download the 32-bit version: Download the Node.js installer.
2. Begin the installation process
As soon as you the .msi file and run it, the installation process will begin. Before you can start the installation process, however, you need to set a few parameters.
Double-click on the installation file and run it. The installer will ask you if you accept the Node.js license agreement. To continue, tick the “I accept” box and click Next: Accept the Node.js license agreement.
Then select the directory where you want to install Node.js. If you don’t want to change the directory, take the Windows default location and click the Next button again. Choosing the Node.js installation folder.
The next screen will show you custom setup options. If you want a default installation with the default Node.js features, click the Next button. Otherwise, you can select your specific items from the icons in the tree before clicking Next : “Custom Setup” options in the Node.js installer.
Node.js gives you the option to install tools for native modules. If you’re interested, click the checkbox to mark your preferences, or click Next to continue with the default settings: Tools for native modules in the Node.js installer.
3. Run Node.js installation on Windows
Finally – and this is the easiest part of all – click the Install button to start the installation process: Start installing Node.js.
The system will complete the installation in a few seconds or minutes and give you a success message. Click the Finish button to close the Node.js installer. Finish installing Node.js on Windows.
4. Check the Node.js installation
This completes the installation process. Now you need to check whether Node.js installed successfully or not.
To verify the installation and see if the correct version was installed, open the prompt on your PC and enter the following command:
Node –version
And to check the npm version run this command:
npm –version
Verify the Node.js installation on Windows.
If the Node.js version and npm are installed correctly, you will see the version name in the CMD prompt.
0 Comments