Node.js is used for developing the front- and back-end, development can be more consistent and designed within the same system. In this quick tutorial, we’ll take a look at how to get Node.js installed on Windows. Once we’ve completed the entirety of the tutorial, you’ll be ready to take the next step with Node.js.
Step 1: installation of the Node.js libraries on the client system
Go to the site https://nodejs.org/en/download/ and download the necessary binary files. In our example, we are going to download the 64-bit setup files for Node.js
Step 2: Run the installer (the .msi file you downloaded in the previous step.)
Step 3: Follow the prompts in the installer (Accept the license agreement, then click the NEXT button a bunch of times and accept the default installation settings).
Step 4: Restart your computer. You will not be able to run Node.js® until you restart your computer.
Running your first Hello World application in Node.js
Make sure you have Node and NPM installed by running simple commands to see what version of each is installed and to run a simple test program:
How to Update Node and NPM
New versions of Node and NPM come out frequently. To install the updates, just download the installer from the Nodejs.org site and run it again. The new version of Node and NPM will replace the older versions.
How to Uninstall Node and NPM
You uninstall Node.js and NPM the same as you would most Windows software:
- Open the Windows Control Panel
- Choose the “Programs and Features” option
- Click the “Uninstall a program” option
- Select Node.js, and click the Uninstall link.
With Node.js and NPM installed you’ll soon be able to take advantage of the huge world of NPM modules that can help with a wide variety of tasks both on the web server and on your desktop (or laptop) machine. The NPM site lists all of the official Node packages making it easy to make the choice.