NVM (Node Version Manager)

When working on projects within Snakeware, it is sometimes useful to switch Node.JS versions. In this how-to we will go into detail on how to install NVM and how to use it.

  1. Get the lastest version from github page
  2. Run the install script
  3. Node version manager is now sucessfully installed, below are some examples on how to use it.

Usage

  1. To install a specific version of Node.JS, run the following command:
Code
nvm install 16.18.0
  1. To switch to a specific version of Node.JS, run the following command:
Code
nvm use 16.18.0
  1. To list all installed versions of Node.JS, run the following command:
Code
nvm list
* 18.15.0 (Currently using 64-bit executable)
18.13.0
16.18.0
16.15.1
14.20.1
10.15.0

For more information, visit the nvm github page

✨ Well done! You are now able to switch your Node.JS versions!