manage nodejs versions on windows
Managing Node.js Versions on Windows
To manage Node.js versions on Windows, you can use a version manager like nvm-windows. Here are the steps to do this:
- Install nvm-windows:
- Download the nvm-setup.zip from the nvm-windows releases page on GitHub.
- Extract the zip file and run the installer.
- Follow the installation prompts to complete the setup.
[[SOURCE 1]]
- Install Node.js Versions:
- Open a new command prompt window.
- Use the nvm install command followed by the version number to install a specific Node.js version. For example:
nvm install 14.17.0
[[SOURCE 8]]
- Switch Between Node.js Versions:
- To switch between installed Node.js versions, use the nvm use command followed by the version number. For example:
nvm use 14.17.0
[[SOURCE 8]]
- Set Default Node.js Version:
- You can set a default Node.js version using the nvm alias command. For example, to set the default version to 14.17.0:
nvm alias default 14.17.0
[[SOURCE 8]]
By following these steps, you can easily manage and switch between different Node.js versions on your Windows machine.