Node.js

NVM

(Node Version Manager)

NVM (Node Version Manager) allow us to switch between different Node.js version effortless.

I'm writing this small pots to have in first hand these commands that I use frequently.

Installing NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

Checking NVM version

nvm --version

That will give you the NVM version an also you will get to know if it was correctly installed or not.

Node Versions to install

nvm ls-remote

Node Versions INSTALLED in your local

nvm ls

Install node latest version

nvm install node

Install an specific version

nvm install <node_version>

Use node latest version

nvm use node

Use a specific node version

nvm use <node_version>