Set Up Windows for Node.js Development with NVM

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • nvm for Windows

    A node.js version management utility for Windows. Ironically written in Go.

  • Now, instead of installing node.js from the official website, we should install the Node Version Manager and download node versions from there. In case you already have node installed this should not be a major problem as NVM will overwrite any node-related environment variables and symlinks, but I'd recommend you to uninstall it anyway as this process will render the current installation completely useless. Go to the NVM for windows project page and download the latest available version's nvm-setup.zip from the releases page. Note that this is not the same as the UNIX-based NVM project, although it is functionally equivalent. "Similar, not identical" as the project itself discloses. Unzip the folder's contents and run nvm-setup.exe. You'll be prompted to agree with the project's terms of use (currently it's the MIT License), then the installer will ask where to install nvm, which will also be the same location as the downloaded node versions and their globally-enabled packages; the roaming app data folder under your current user should be perfectly fine. However, you'll then be prompted to indicate where to keep the node.js symlink, and (at least in versions up to 1.1.8) there's a catch: you cannot keep the symlink under a path which contains whitespaces, and unfortunately the default installation path (currently C:\Program Files\nodejs) steps right into this trap.

  • nvm

    Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

  • Now, instead of installing node.js from the official website, we should install the Node Version Manager and download node versions from there. In case you already have node installed this should not be a major problem as NVM will overwrite any node-related environment variables and symlinks, but I'd recommend you to uninstall it anyway as this process will render the current installation completely useless. Go to the NVM for windows project page and download the latest available version's nvm-setup.zip from the releases page. Note that this is not the same as the UNIX-based NVM project, although it is functionally equivalent. "Similar, not identical" as the project itself discloses. Unzip the folder's contents and run nvm-setup.exe. You'll be prompted to agree with the project's terms of use (currently it's the MIT License), then the installer will ask where to install nvm, which will also be the same location as the downloaded node versions and their globally-enabled packages; the roaming app data folder under your current user should be perfectly fine. However, you'll then be prompted to indicate where to keep the node.js symlink, and (at least in versions up to 1.1.8) there's a catch: you cannot keep the symlink under a path which contains whitespaces, and unfortunately the default installation path (currently C:\Program Files\nodejs) steps right into this trap.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts