How to Install Node.js

First go to the official Node.js websitehttps://nodejs.org/en/download/, and find the download link in the Source Code section.

Download the source code


# cd /usr/local/src
# wget https://nodejs.org/dist/v6.10.0/node-v6.10.0.tar.gz

Install gcc and gcc-c++ for compilation

 


# yum install gcc gcc-c++

Extract and compile


# cd /usr/local/src
# tar zxvf node-v6.10.0.tar.gz
# cd node-v6.10.0
# ./configure
# make && make install

Check the version


#node –v
v6.10.0

Leave a Comment

Your email address will not be published. Required fields are marked *

中文 EN
🚀

RedGate VPN

免费节点太挤太慢?
升级高速稳定专线

立即体验 →

告别卡顿

RedGate VPN
全球高速节点

免费下载 →
Scroll to Top