


The following was done on a CentOS 7 server.įirst, execute the following setup script from nodesource, which will check to make sure your server is supported to install Node.js. If you are using an older version of RedHat or CentOS, then you should make sure EPEL is enabled on your server. You can also install node manager using yum on RedHat or CentOS as explained in this section.įor this, we need to use add nodesource distribution to our yum repository. Verify that the mongodb Node.js module is installed successfully. In this example, we are installing MongoDB module to Node.js. To install an module, use npm install command as shown below. Verify that the npm is installed properly.Īs you see below, currently node.js does not have any modules installed. You can install additional packages to Node.js using npm. Verify that the Node.js is successfully installed. Tar -strip-components 1 -xzf /usr/save/node-v4.2.1-linux-圆4.tar.gz This will untar all Node.js related binaries into the appropriate directories under /usr/local. Next, do the following to install it under /usr/local/bin. Note:- If you don’t know how to open Command Prompt, press the Windows key on your keyboard and search for “cmd”.Note: If you get “ERROR: certificate common name `*.’ doesn’t match requested host name `’, then use the following to skip the certificate check. You can see the versions as shown in the below image. Open Command Prompt and check the Node and npm versions with the below commands. Now, verify that the Node.js and NPM are installed on our system and their versions. Finish the installationĪfter a successful installation closes the installation wizard by clicking the Finish button. Now click the Install button to start Node.js installation. In this step, you can optionally install tools like Python2, Visual Studio Build Tools, etc. But here, we don’t need to bother about it. We can customize the features to be installed with Node.js. If you are preferring another, it can be chosen from this step. Choose the installation directoryĪS default, Node.js is installed in the Program Files directory. Now accept the license agreement and click Next. The first step is to start the installation wizard by running the installation file. If there is any doubt, the steps below will guide you. Currently, 16.13.0 is the stable version of Nodejs and we need to download it. The stable version is recommended for most users. The stable version and the latest version.

You can see two versions on the main page. So, the current stable version of Node.js can be downloaded and installed from the official website that is given below. Test the versions of Node.js and NPM installed on our system.

Steps describing the installation of the Node.js using the installation file.Download the Node.js installation file from the official website.After completing this article, we will learn:.
