Node.js Development
Set up a Node.js development environment with nvm
Configuration
[
{
"type": "nvm",
"nodeVersions": [
"20"
],
"global": "20"
}
]What Gets Installed
This configuration installs nvm (Node Version Manager), a popular tool for downloading, installing, and managing Node.js versions. Using nvm, multiple versions of Node.js can be installed simultaneously and switched between using the nvm use command.
This configuration will:
- Install nvm if not already present
- Install Node.js version 20
- Set Node.js 20 as the default system version
Usage
After installation, you can:
- Check the Node.js version:
node --version - Switch Node.js versions:
nvm use <version> - Install additional versions: Add them to the
nodeVersionsarray - Change the default version: Update the
globalproperty