Skip to content

Install Nodejs via package manager on CentOS

I installed Nodejs according to the Nodejs official online instructions. My operation system is Centos 6.5 64bit. Memory is 1.95GB. And disk space is 15 GB. Installing result is as below:

sh
#node -v
v6.10.0

#npm -v
3.10.10

Instructions:

  1. Run as root on CentOS, for Node.js v6 LTS:
default
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
  1. Then install, as root:
default
yum -y install nodejs
  1. Check
default
node -v

npm -v

Reference:

天上的神明与星辰,人间的艺术和真纯,我们所敬畏和热爱的,莫过于此。