25th Anniversary Savings | 25% Off Dedicated Servers*Shop Now
25th Anniversary Savings | 25% Off VPS Hosting* †††Shop Now
Limited Inventory: High-Performance AMD-Powered Servers Now Available.* Shop Now >
Dedicated Hosting Deals | From $99/moShop Now

How To Install Node.js on Fedora 23

Posted on by dpepper
Reading Time: 2 minutes

Node.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

    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

  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
    -> 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)


About the Author: dpepper

Latest Articles

cPanel EA NGINX vs Engintron: What is the Best Option?

Read Article

cPanel EA NGINX vs Engintron: What is the Best Option?

Read Article

What Is Umask and How to Use it Effectively

Read Article

Troubleshooting: Too Many Redirects

Read Article

What Is a Time Series Database? How It Works & Use Cases

Read Article