W3 Mind Logo
Home » Installing Node.js® and NPM on Windows

Installing Node.js® and NPM on Windows

What is Node.js®?

Node.js® is a JavaScript-based environment which you can use to create web-servers and networked applications.

What is NPM?

NPM is a “package manager” that makes installing Node “packages” fast and easy. A package is just a code library that extends Node by adding useful features.
NPM is installed when you install Node.js®

Here are the steps to install Node.js and NPM:

  1. Download the setup from Nodejs.org.
  2. Run the setup (the .msi file you downloaded in the previous step.)
  3. Follow the prompts in the setup (Accept the license agreement, click the NEXT button a bunch of times and accept the default installation settings).
  4. Now restart your computer. You won’t be able to run Node.js until you restart your computer.

You can check what version of each is installed by running simple commands:

  1. Testing Node. Open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v
  2. Testing NPM. Open the Windows Command Prompt, Powershell or a similar command line tool, and type npm -v
  3. And to make sure that node.js is working properly. Create a test JavaScript file: name it hello.js, and just add the code
    console.log('Node is installed!');

    Now open your command line program, navigate to the folder where you save the file and type node hello.js.
    You should see the output Node is installed!. If you see this output it means node.js is working properly. Enjoy 🙂

About Author
Picture of W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!