First, describe the Node Js environment requirements and check whether it is suitable for the node Js installation:
GCC 4.2 or newer G++ 4.2 or newer Python 2.6 or 2.7 GNU Make 3.81 or newer libexecinfo(FreeBSD and OpenBSD only)
To view the release version:
To view GCC:
Installation of GCC, etc.:
To view the python version:
Using the package tool to install can basically solve subsequent installation failures:
yum -y update && yum -y groupinstall "Development Tools"
Download Node Js:
Install the node Js:
cd /usr/src wget http://nodejs.org/dist/v0.12.4/node-v0.12.4-sunos-x64.tar.gz tar -xf node-v0.12.4-sunos-x64.tar.gz cd node-v0.12.4-sunos-x64 ./configure make make install
Check whether the installation is successful:
node -v npm -v