How to Install node.js on Windows

How to Install node.js on Windows

How to Install node.js on Windows. Node.js is a server-side platform based on the Google Chrome JavaScript engine (V8 Engine). Node.js provides everything we need to run a program written in JavaScript.

With Node.js, the JavaScript programming language runs in the server environment instead of running in the browser. Node.js allows us to easily and simply write scalable and large network applications.

In this article, we want to teach you how to install node.js on Windows.


Buy Windows Virtual Private Server

Recommended Article: How to install LEMP on CentOS 8

Familiarity with modules

To start programming with Node.js, you must first install it on your system. Node.js can be installed on various operating systems such as Windows, Ubuntu, OSX, etc. Once the Node.js installation is complete, you can start your projects using it.

When you install node.js, npm (node package manager) is also installed in the background, which you can use to manage packages and modules related to your project or the whole system.

Node.js contains a large number of modules, such as fs or path or http modules. Other companies and developers also created modules and shared them with others, which you can install and use using npm. For example, using the Mongodb module, you can connect to the MongoDB database and manage the information you want.



Step 1: Download Node.js

The first step in getting started with Node is to install it on your system. To do this, you need to enter the download link of Node.js from its official site and select the version related to your operating system and download it.




As you can see on the download page, the download link is placed separately for each operating system. Node.js typically offers two popular versions:

1. LTS or Long term support: This is not the latest version of Node, but it is a version that is completely stable. There is great support for this version and it is recommended to all users to choose and download this version for development.

2. Current: This is the latest version of Node and contains the latest changes and features. Support for this version is weak and not a stable version.

The npm version that will be installed is the same in both of the above cases. As shown in the previous image, we plan to download and install the 64-bit version of Node.js for Windows. To do this, click on the specified link to complete the download.


Step 2: Install Node.js

After the .msi file is downloaded, double-click on it to start the installation. In the following step, click the Next button:




In the next step, read and accept the License agreement and Node.js license issues and click the Next button.




You can change the installation location in the following step, but we do not change this location. It is recommended that you do not change it and click Next.




In the next section you can also manage the things that are installed on your system.




Some npm modules must be compiled using the C or C ++ language when installed. If you want to install and use these modules on your system, you need to install Python, Visual studio build tools and many more on your system.




If you check in the image above, Node.js will do everything for you by default. You can also uncheck and click Next.

In this case, you have to manually and with other methods install node-gyp on your system, which is easier to automate.

In the next section, click Install and wait for Node.js to be installed. After a short time, Node.js will be installed on your system:




Clicking Finish completes the installation of Node.js and you can use it.




Step 3: Check the version of Node.js

To do this, you need to check that the node and npm are installed correctly on your system. Open a command line and type the commands node -v and npm -v in it and press Enter to execute it.

If the desired versions are displayed, it will indicate that Node.js has been successfully installed on your system:

node -v

Output: 12.18.2


npm -v

Output: 6.14.5


Once you are sure that Node.js has been successfully installed on your system, you can start working with it.


Step 4: Update the Node.js version

The best and easiest way to update your Node.js version is to download the latest version from the official Node.js site and install it. The site has officially logged all the changes and updates of the new version and you can see them.

Another way to update Node.js for other operating systems, especially Linux, is to use nvm or the node version manager. nvm lets you install and manage different versions of Node.js. In other words, you can use nvm to install the desired version of Node.js on your computer according to the needs of the project, switch between versions and run the version.

Note: This method is not suitable for Windows; Because nvm is inherently written for Linux.


Dear user, we hope you would enjoy this tutorial, you can ask questions about this training in the comments section, or to solve other problems in the field of Eldernode training, refer to the Ask page section and raise your problem in it as soon as possible. Make time for other users and experts to answer your questions.



Also read :

How to install Node.js on Debian 10

How to Install and config Node.js on Ubuntu 20.04


We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave Your Comment

Your email address will not be published.

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way


7 days a week, 24 hours a day