Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>vsc-nvmNew to Visual Studio Code? Get it now.
vsc-nvm

vsc-nvm

henrynguyen5-vsc

|
29,659 installs
| (5) | Free
VSCode extension based NVM helper
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

Install here

Simplify your node versioning workflow with nvm and this extension.

Features

This extension simplifies nvm workflow by:

  • Automatically running nvm use on each terminal opened when an .nvmrc file exists in your workspace
  • Providing a command input hook to choose a version of node to run tasks against

Requirements

  • To be able to pick different node versions, you must have nvm installed
  • To have nvm use executed on terminal startup, you must have nvm installed along with a .nvmrc file in your workspace

Extension Settings

Running a task with a choosable node version

// launch.json for running version picker with defaults
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Jest Current File",
      "program": "${workspaceFolder}/node_modules/.bin/jest",
      "args": ["--detectOpenHandles", "${relativeFile}"],
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "runtimeExecutable": "${env:HOME}/.nvm/versions/node/${input:pickVersion}/bin/node"
    }
  ],
  "inputs": [
    {
      "id": "pickVersion",
      "type": "command",
      "command": "extension.node-version"
    }
  ]
}

Running a task with a choosable node version in a custom nvm directory

// launch.json for running version picker with specified nvm dir
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Jest Current File",
      "program": "${workspaceFolder}/node_modules/.bin/jest",
      "args": ["--detectOpenHandles", "${relativeFile}"],
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "runtimeExecutable": "${env:HOME}/.nvm/versions/node/${input:pickVersion}/bin/node"
    }
  ],
  "inputs": [
    {
      "id": "pickVersion",
      "type": "command",
      "command": "extension.node-version",
      "args": {
        "nvmDir": "/my/home/.nvm"
      }
    }
  ]
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft