How To Install Node.js on Fedora 23

Reading Time: 2 minutesNode.js is a cross-platform runtime environment built on JavaScript. Applications also are written in JavaScript. Node.js lends itself to rapidly deploying, real-time web applications, and is considered extremely scalable due to its event-driven architecture. Node Version Manager allows admins to easily install and manage multiple node.js versions.

Pre-Flight Check

  • These instructions are intended specifically for installing Node.js via NVM (Node Version Manager) on Fedora 23. To install Node.js on another operating system, follow our guides for Fedora 21, CentOS 7, and Ubuntu 14.04 LTS.
  • We’ll be working as root on a Liquid Web Self Managed Fedora 23 server.

Step #1: Install NVM (Node Version Manager)

If NVM is not already installed, you’ll first want to follow our tutorial on How to Install NVM (Node Version Manager) for Node.js on Fedora 23 before proceeding.

Step #2: Check Available Node.js Versions

To view a list of the versions that are available for installation, run this command: nvm ls-remote In addition to selecting a specific version from the output of that command, you also can simply install the latest stable or unstable versions, as shown in the next step.

Step #3: Install a Node.js Version

  1. To download, compile, and install the latest version in the v0.12.x release of node.js, run this command:nvm install 0.12
  2. Now, to display currently activated version run:nvm current Which results in the following output: [root@host ~]# nvm current v0.12.9 In this case, the server is running v0.12.9.
  3. To download, compile, and install the latest stable release of node.js, simply run:nvm install stable
  4. To show the currently activated version, run:nvm current In this case, that command returns the following output: [root@host ~]# nvm current v5.7.0
  5. You can list the currently installed node versions with the command:nvm ls which, in this case, produces the following output: [root@host ~]# nvm ls v0.12.9 -> v5.7.0 node -> stable (-> v5.7.0) (default) stable -> 5.7 (-> v5.7.0) (default) iojs -> N/A (default)
  6. Finally, if you want to modify PATH to use v0.12.9 again, you can use the following command:nvm use 0.12.9 Which returns: [root@host ~]# nvm use 0.12.9 Now using node v0.12.9 (npm v2.14.9)
Refer a friend and get hosting credit!