Switch Node.js versions from VS Code with nvm, nvm-windows, fnm, pnpm, Volta, mise, or Vite+ (vp).
Features
View installed versions and install new versions from the command palette or status bar, supporting both global and project scopes.
Supports tool declarations such as mise.toml, .tool-versions, .nvmrc, .node-version, etc.
Select based on project configuration and current Node; if the situation is unclear, you can choose manually and remember the choice for each workspace.
Click the Node version in the status bar, choose an installed version, then select global or project scope. You can also install a new version. If a manager needs to be selected first, the version list opens immediately after that selection.
Click the separate manager name / choose manager status item to change managers. Run Node: Show Current Version to inspect the version, path, and manager.
Manager scope
Manager
Global
Project
nvm (macOS/Linux)
Set the default
Write .nvmrc
nvm-windows
Switch the global version
Not supported
fnm
Set the default
Write .node-version
Volta
Set the default
Pin in package.json
mise
Set the global version
Write mise project configuration
pnpm
Set the global Node version
Not available
Vite+ (vp)
Set the default
Pin the project version
Commands
Command
Description
Node: Switch Version
Browse and switch installed Node versions
Node: Select Version Manager
Choose and remember the manager for this workspace
Node: Install Version
Install a Node version
Node: Show Current Version
Show the Node version, path, and manager seen by VS Code
Node: Refresh Versions
Rescan managers, versions, and project configuration
Node: Show Diagnostics
Inspect manager detection, runtime, and project declarations