How to Install Node.js® and NPM on Windows
what is Node?

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser.

About Node.js®

In the first place, Node.js is free.

As an asynchronous event-driven JavaScript runtime, Node is designed to build scalable network applications.

Node.js files contain tasks that will be executed on certain events.

Like any javascript file, Node.js files have the extension ".js"

The platforms where Node js can run.
  • Unix
  • Linux
  • Windows
  • Mac OS X among others...
What can I do with Node js?

With Node js you can do anything you feel like;

  • Node.js can create, open, read, write, delete, and close files on the server
  • Node.js can collect form data and store it in databases like MYSQL, MONGO DB among others.
  • Node.js can generate dynamic page content on your Site/App
  • Node.js can add, delete, modify data in your database
What you should know!

Node isn’t a program that you simply launch like Microsoft documents or Adobe programs. To use Node you must type command-line instructions, so you need to be comfortable with a command-line tool like the Windows default Command Prompt(CMD), PowerShell or the Git shell.

Installing Node and NPM are pretty simple using the installer package available from the Node.js® official web site.

Installation Process/Steps.
  1. Download the Windows installer from the Nodes.js® official web site and save it in your preferred folder.
  2. Run the installer (the .msi file you downloaded in the first step).
  3. Follow the prompts in the installer.
    • Accept the license agreement
    • click the NEXT button a bunch of times and accept the default installation settings.
  4. Restart your computer because you won’t be able to use Node.js® until you restart it.
How do you tell that node was installed successfully?

To make sure that you have Node and NPM installed. Simply run some simple commands to see what version of each is installed.

Here is how you check up for the versions;

  • Press window button + R at the same time on your computer. A run dialog box will pop up and type: CMD and click OK
  • Inside the black shell that will be presented to you, Type:: node -v to check for the NODE installed version.
  • Lastly, Type:: npm -v to also check for the NPM installed version.
collections_bookmark Category :: Javascript
date_range Published :: 2 months ago At: 01:04 PM
person Writer :: Code

YOU MAY LIKE THESE POSTS