Manage multiple versions of nodejs with nvm

I’m using nodejs as my primary development language and usually I deploy my projects in docker containers. There days I realised my development nodejs version is not the latest one.

So I was looking to update it really easy with the option to choose between the current version (reminds me on .net framework version via app.pool or php versioning).

Nvm seems the perfect tool to do the job:

Now using node v6.1.0 (npm v3.8.6)

default -> 6.1 (-> v6.1.0)

The output was v6.1.0

You can check the installed node.js versions with: