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.
- Get the lastest version from github page
- Run the install script
- Node version manager is now sucessfully installed, below are some examples on how to use it.
Usage
- To install a specific version of Node.JS, run the following command:
Code
nvm install 16.18.0
- To switch to a specific version of Node.JS, run the following command:
Code
nvm use 16.18.0
- 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!