How to Install Node.js on a Windows Server

Reading Time: 2 minutes

Node.js is a Javascript runtime built with fast deployments in mind. Both the client and server-side of the application are Javascript. It provides an asynchronous approach to serving up content, providing for extremely responsive applications. Node.js is cross-platform and installable on Linux, macOS, and Windows. This tutorial covers the installation of Node.js on a Windows Server.

Pre-Check Flight:

  • These instructions are being performed on a Liquid Web Self Managed Windows 2019 server as an administrator.
  • These instructions are being performed utilizing Microsoft’s Edge browser.

Step #1: Install Node.js

One of the useful things about installing Node.js on Windows is that a convenient installer is provided.

  1. Navigate to the Node.js download page:
node install01
  1. Click on the Windows Installer icon to start downloading the installer:
node install02
  1. Next, click on the downloaded in the browser, this should open up the installer:
node install03
  1. Click Next on the installer and then, click the checkbox to accept the License Agreement and continue to click Next through the prompts:
node install04
node install05
node install06
  1. Eventually, during setup, there will be an option to install some optional tools to compile native modules. This option is left up to the user to decide but, for the purposes of this tutorial, they are not being included.
node install07
  1. Finally, select Install:
node install08

The installer should look something like the following picture while the installer is running.

node install09

The installer will indicate when the installation is complete and prompt to hit the Finish button to close it:

node install10

Step #2: Verify Node.js is Installed

Node.js is now installed! Now that it is available, the installation can be quickly verified by running just a couple of commands.

  1. To check the Node.js version for installation verification, open a command prompt by pressing the Windows key, typing in cmd, and pressing enter. Once the command prompt is open, run the following command:
C:\Users\Administrator>node -v
v12.18.0
  1. The Windows installation of Node.js includes NPM, the node package manager. To verify packages are able to be installed, run the following command to install the react package:
C:\Users\Administrator>npm install -g react
+ react@16.13.1
added 6 packages from 3 contributors in 0.828s

That’s it! Now that Node.js is installed, it’s possible to start working on Node.js applications!

Conclusion

Node.js is one of the most widely used javascript runtime environments in use today. This is due to the robust framework which allows developers to easily build web applications using push technology. Because most developers are already aware and work with javascript, the transition to node.js is elegantly simple!

The Most Helpful Humans In Hosting™

We pride ourselves on being The Most Helpful Humans In Hosting™! Our support staff is always available to assist with any Dedicated, Cloud, or VPS server issues 24 hours a day, 7 days a week 365 days a year.

We are available, via our ticketing systems at support@liquidweb.com, by phone at 800-580-4986 or via a LiveChat or whatever method you prefer. We work hard for you so you don’t have to!

Refer a friend and get hosting credit!