Home > Software > Development > Node > NVM
Details
- Package ID
- nvm
- Version
- 2.0.1
- Downloads
- 778709
- Website
- https://github.com/nvm-windows/nvm
Summary
A node.js version management utility for Windows.
Description
NVM for Windows
Overview
Manage multiple installations of Node.js on a Windows computer.
Version 2 is a complete rewrite of NVM for Windows. Highlights:
- No administrator rights required. The default “shim” mode needs no special permissions; “link” mode uses NTFS junctions for zero latency.
- Per-directory version switching using
.nvmrc,.node-version,package.json, or custom runtime config files, with optional on-demand installs. - Parallel installations and faster downloads.
- Publisher verification to prevent untrusted Node.js swaps, native Windows event logging, and unified package manager handling.
Full documentation: https://docs.nvm-windows.com
Package notes
- The installer is per-user. It installs under the local AppData of the account running the install and adds itself to that user’s PATH. Chocolatey runs elevated, so NVM is set up for the elevated user.
- Upgrading from the previous 1.x package runs the installer’s built-in v1 migration. It copies your settings and every installed Node.js version into the new per-user folder, then removes the 1.x install and its system environment variables.
- The migration is slow. Expect 10 to 30 minutes, longer with many Node.js versions (11 versions took about 14 minutes on a fast machine). It will look stuck. Each version is copied by a robocopy.exe process you can watch in Task Manager. Do not interrupt it.
- For a fast upgrade without migration, run
choco uninstall nvm.installfirst (this deletes all 1.x Node.js versions and global npm packages), then install 2.x and reinstall versions withnvm install {version}.
Commands
Type nvm in a terminal for help, or nvm {command} --help for details on a command. From nvm --help in v2.0.0:
nvm install {version}(aliasesi,add): Install one or more Node.js versions (e.g.latest,lts,lts/iron,x.x.x,x.x,x).nvm uninstall {version}(aliasesrm,un): Uninstall one or more Node.js versions.nvm use {version}: Switch the default Node.js version.nvm use ltsandnvm use latestalso work.nvm pin [version]: Pin project Node.js version (ex: write.nvmrc).nvm list(aliasls): List the installed Node.js versions.nvm list releaseslists downloadable versions andnvm list cachedlists cached ones.nvm alias: Manage Node.js version aliases (add,list,remove).nvm default: Show the default version.nvm env: Display nvm environment details.nvm cache: View and manage the nvm cache (add,list,remove).nvm config(aliascfg): View and manage the nvm configuration (list,get,set,reset).nvm on: Manage Node.js with nvm.nvm off: Stop managing Node.js with nvm.nvm doctor: Detect and fix common issues (--autofixfixes them automatically).nvm upgrade: Upgrade nvm (--checkonly checks for updates).
Full command reference: https://docs.nvm-windows.com/commands
Comments
Loading comments...