Saturday, April 18, 2020

nvm - switch node versions with nvm

Node Version Manager (nvm) helps to switch between different versions of nodejs. This article provides all the details on nvm:

Some basic commands:
  • To install nvm on mac: brew install nvm
  • To install nodejs using nvm: nvm install node
  • To install a specific version of nodejs: nvm install 13.5.0
  • To use a specific version as default: nvm alias default 12.16.1
  • To see what versions are available on your local: nvm list
  • To use a specific version: nvm use <version number>
References:

https://michael-kuehnel.de/node.js/2015/09/08/using-vm-to-switch-node-versions.html

https://www.kulik.io/2019/05/01/set-default-node-version-using-nvm/

https://nodesource.com/blog/installing-node-js-tutorial-using-nvm-on-mac-os-x-and-ubuntu/

No comments:

Post a Comment