Last active
June 7, 2024 07:49
-
-
Save Bhavya8181/c93433494dea3f07238c0f7275c13d17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using nvm-windows | |
nvm-windows (Node Version Manager for Windows) allows you to install and switch between different versions of Node.js. | |
reference Link | |
-https://www.freecodecamp.org/news/nvm-for-windows-how-to-download-and-install-node-version-manager-in-windows-10/ | |
Step-by-Step Instructions: | |
1. Uninstall Existing Node.js (optional): | |
If Node.js is already installed, it’s recommended to uninstall it to avoid conflicts. | |
Go to Control Panel > Programs > Programs and Features, find Node.js, and uninstall it. | |
2. Download nvm-windows: | |
Go to the nvm-windows releases page. (https://github.com/coreybutler/nvm-windows/releases) | |
Download the nvm-setup.zip file from the latest release. | |
3. Install nvm-windows: | |
Extract the downloaded nvm-setup.zip file. | |
Run the nvm-setup.exe installer and follow the instructions. | |
4. Install Node.js Versions: | |
Open Command Prompt as an administrator. | |
Use the following commands to install Node.js versions: | |
- nvm install 12.22.12 | |
- nvm install 10.24.1 | |
5. Switch Between Node.js Versions: | |
To use a specific Node.js version, use: | |
- nvm use 12.22.12 | |
6. To list all installed versions, use: | |
- nvm list | |
7. Verify Node.js Version: | |
Run node -v to check the currently active Node.js version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment