How to switch Node.js version using CLI?

You can easily switch the Node.js version when you have downloaded multiple different versions of Node.js.

You can see the available list of Node.js by running the command,

nvm ls

You will see output like,