Install Node.js on CentOS 7 from source code

// if no acceptable C compiler found
$sudo yum groupinstall “Development Tools”

1. wget https://nodejs.org/dist/v4.2.1/node-v4.2.1.tar.gz
2. $ tar -xzvf node-v4.2.1.tar.gz
3. $ cd node-v4.2.1
4. $ ./configure
5. $ sudo make
6. $ sudo make install
7. $ node -v

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s