Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 19, 2022 06:38 pm GMT

Handling different node versions in Windows

Whenever we work on different node projects, there are chances that each node project will have a different node version. To handle different node versions NVM [ Node Version Manager ] can be a useful one.

Nvm allows you to quickly install and use different versions of node via the command line.

You can follow the below steps to install nvm on your windows machine

  • Download the latest version of nvm .zip file from the below link

Nvm Download Link

Nvm zip link

  • Unzip the file and once the installation wizard opens click on the Next button untill you see the Install button.
  • Click on the Install button finally and once the installation is over on completion of the progress bar click on the Finish button.
  • Once your installation is over in your command line interface type nvm --version and the version of the nvm installed should be displayed.
  • Now in order to install node version of various types the below command
    • nvm install 16.13.0
    • nvm intall 12.13.0
  • Once the respective versions are installed the below command is used to list the various node versions installed in the system.
    • nvm list
  • To use a specific node version you can use the below command
    • nvm use 12.13.0
  • Now you can always use different node versions and this command line helps us to jump between all our installed versions.

Thank you for reading !

Feel free to connect with me via Twitter for more insights or tech discussions


Original Link: https://dev.to/dhanushnehru/handling-different-node-versions-in-windows-54im

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To