Node Version Manager (nvm-windows)

Node Version Manager (nvm-windows)

Overview

Node Version Manager for Windows (nvm-windows) is a powerful utility that allows users to install, manage, and switch between multiple versions of Node.js on Windows systems.

Why Use nvm-windows?

  • Easily manage multiple Node.js versions.

  • Seamless switching between versions for different projects.

  • Lightweight and simple to use.


Installation Guide

Step 1: Download the Installer

  1. Visit the official nvm-windows releases page.

  2. Download the latest installer for your system.

Step 2: Install nvm-windows

  1. Run the installer and follow the on-screen instructions.

  2. Ensure that nvm is added to your system's PATH variable during installation.

Step 3: Verify Installation

  1. Open Command Prompt or PowerShell.

  2. Run the following command:

    nvm version

    If installed correctly, the version number of nvm-windows will be displayed.


Basic Usage

Listing Installed Node.js Versions

To view all Node.js versions currently installed:

nvm list

Installing a Specific Node.js Version

To download and install a specific version of Node.js:

nvm install <version>

Example:

nvm install 18.16.0

Switching to a Specific Version

To switch your environment to a specific Node.js version:

nvm use <version>

Example:

nvm use 20.17.0

Setting a Default Version

To set a default version that will be used for all new terminal sessions:

nvm alias default <version>

Example:

nvm alias default 20.17.0

Uninstalling a Version

To remove an installed version of Node.js:

nvm uninstall <version>

Example:

nvm uninstall 14.18.0

Troubleshooting

Common Issues

  1. nvm Command Not Found: Ensure nvm is in your system PATH variable.

  2. Node.js Not Switching: Close and reopen your terminal after using the nvm use command.

  3. Version Installation Fails: Verify your internet connection and try reinstalling the version.

Where to Get Help


Additional Resources


License

nvm-windows is distributed under the MIT License.


Contact

For feedback or suggestions, please reach out via the nvm-windows GitHub repository.

Last updated