How to Install Node.js and NPM On Windows 10

How to Install Node.js and NPM On Windows 10… easy peasy! In this post we will go through it in bite size chunks, just to show how easy it is.

how-to-nodejs-npm-win10-main

Introduction.

Node.js is a lightweight, fast, cross-platform runtime environment. Basically, it runs scripts on the server to render content before it is delivered to a web browser. Useful for both servers and desktop applications, Node.js is a run-time environment that includes everything you need to execute not only a program written in JavaScript, but other languages as well.

Node.js is “open-source” technology; it’s not just about being free; it’s also about the group of creative people all around the world who give their time, working together, to continue giving us a better product.

If you like to tinker with the Internet of Things, Robotics, Javascript, and the like, you are going to run across Node.js and NPM. If you, like a rather large number of people, like me, who just happen to be Windows users, then read on.

Who uses Node.js.

Since Node.js is very effective for developing applications, many big companies use it as their primary Javascript code. Some of these companies are-

  • Netflix
  • Trello
  • PayPal
  • LinkedIn
  • Walmart
  • Uber
  • NASA
  • Mozilla
  • Firefox
  • Yahoo
  • GoDaddy

Source codersera.com


Let’s get started.

You will need to be logged into Windows 10 with administrator privileges.

That simply means you are able to download and install the software.

As we are also going to do some work from the Windows command line,

you will need access either:

Windows PowerShell

(Search > Powershell > right-click > run as administrator)

Or

Windows command line

(Search > cmd > right-click > run as administrator)

ps-cmd-amin

What the PowerShell Admin Prompt looks like.

cmd-admin

What the Windows Command Admin Prompt looks like.

Now, with the preliminaries out of the way, let’s download and install Node.js

Download Node.js Installer.

Open your favorite Web Browser, navigate to

https://nodejs.org/en/download/

Click on the Windows Installer area that will download the latest default version for Windows 64Bit. When this article was written, version node-v14.17.0-x64 was the current version. The Node.js installer includes the NPM package manager.

Note: Other versions are available; you may need the 32-bit version, or the version for another Operating System Linux, Mac, etc.

Install Node.js

node-inst-dl-run-file

Left Click (or Double Left Click) on the downloaded msi file to start the installation.

The system will ask if you want to run the software – click Run.

You will be welcomed to the Node.js Setup Wizard –click Next.

On the next screen, review the license agreement. -Click Next

(if you agree to the terms and want to install the software.)

The installer will prompt you for the installation location. Leave the default location, unless you have a specific need to install it somewhere else – then click Next.

The wizard will let you select components to include or remove from the installation. Again, unless you have a specific need, accept the defaults by clicking Next.

Finally, click the Install button to run the installer.

When it finishes, click Finish.

Check Installation.

It’s always a good idea to make sure everything went to plan, so let’s do a simple check to see if our Node.js and npm installed properly.

Open a PowerShell prompt and type the following:

node -v

(Of course, you can use a Windows Command Prompt)

test-nodejs

You should get back something like this.

Remember the version number will probably be different.

Now try the same thing for NPM.

Open a PowerShell prompt and type the following:

npm -v

(Again you can use a Windows Command Prompt)

Remember the version number will probably be different.

There… all done.

As someone I know says… ‘Good Job’

Prologue.

How to Install Node.js and NPM on Windows 10

By AL McDivitt

Installing Node.js and NPM on Windows 10 really is easier and faster to do than write about.

But I do hope this guide helps anyone who may need it.

The world of IoT, Robotics, JavaScript applications, Remote Control, Web Interface, and on and on Awaits….

iotxplain.com.au