How to Install NVM (Node Version Manager) for Node.js on Fedora 21

The Node Version Manager allows admins to easily manage node.js versions. It’s a bash script that has the capability to manage multiple active versions of node.js, with functionality such as: installation, executing commands with specific node.js versions, setting the PATH variable to use a specific node.js versions, etc.

Pre-Flight Check

These instructions are intended specifically for installing NVM (Node Version Manager) on a single Fedora 21 node.

I’ll be working from a Liquid Web Self Managed Fedora 21 server, and I’ll be logged in as root.

At the time of publication, NVM v0.25.0 was the most recent version available. You should check the GitHub project page for the latest release of NVM, and adjust the above command to include the newest version. For example, if the most recent version was 0.30.2, then your command would be similar to: