Node.js Install Node.js from source on Centos, RHEL and Fedora

Example

Prerequisites

  • git
  • clang and clang++ 3.4^ or gcc and g++ 4.8^
  • Python 2.6 or 2.7
  • GNU Make 3.81^

Get source

Node.js v6.x LTS

git clone -b v6.x https://github.com/nodejs/node.git

Node.js v7.x

git clone -b v7.x https://github.com/nodejs/node.git

Build

cd node
./configure
make -jX
su -c make install

X - the number of processor cores, greatly speeds up the build

Cleanup [Optional]

cd 
rm -rf node