Running multiple version of Nodejs in Windows

kaustubh shukla
2 min readNov 24, 2019

--

Introduction

Node.js is the key for many Javascript framework application such as Angular, ReactJs, etc. As with Node.js, many versions are released and new versions will be released in the future. In this article, you will learn all the required details about running an Javascript framework application with a specific Node.js version in Windows environment using nvm for Windows.

Prerequisites

We’ll do things in a old school way, i.e. command line tool so little familiarity with the command line will be helpful to yourself.

Step 1: Install nvm for Windows

As an initiation step, we’ll install nvm for Windows which is the tool that will enable us to switch among different versions of Node.js in Windows environment. We will install the latest version of the tool which is 1.1.7 from this link . Straight and simple installation, just need to follow the prompts of the Wizard

Step 2: Install Node.js

If you have not already installed Node.js on your machine, it is time to install the latest or specific version of node.js using the utility we installed in the previous step.

$ nvm install 4.4.0

Important Basic commands:

  • nvm arch [32|64]: Show if node is running in 32 or 64 bit mode. Specify 32 or 64 to override the default architecture.
  • nvm install [arch]: The version can be a node.js version or "latest" for the latest stable version. Optionally specify whether to install the 32 or 64 bit version (defaults to system arch). Set [arch] to "all" to install 32 AND 64 bit versions.
  • nvm list [available]: List the node.js installations. Type available at the end to show a list of versions available for download.
  • nvm on: Enable node.js version management.
  • nvm off: Disable node.js version management (does not uninstall anything).
  • nvm uninstall : Uninstall a specific version.
  • nvm use [arch]: Switch to use the specified version. Optionally specify 32/64bit architecture. nvm use will continue using the selected version, but switch to 32/64 bit mode based on the value supplied to . For information about using use in a specific directory (or using .nvmrc), please refer to issue #16.
  • nvm root : Set the directory where nvm should store different versions of node.js. If is not set, the current root will be displayed.
  • nvm version: Displays the current running version of NVM for Windows.

Originally published at http://www.kaustubh.website.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response