Node JS on Centos NPM (Node Package Management)
How to install Node JS on Centos
You must have OpenSSL installed, curl installed and root access.
yum install gcc gcc-c++ yum install autoconf automake make yum install curl yum install openssl-devel
Use `su` for root or login as root.
How to install Node JS
- Download NoteJS's packages
wget http://nodejs.org/dist/v0.8.20/node-v0.8.20.tar.gz
- Extract it with the following command:
tar zxvf node-v0.8.20.tar.gz
- Finish installing it
cd node-v0.8.20 ./configure make make install
- Finally test if it works
node --version
Congratulations, NodeJS is installed.
You may now install npm and packages such as socket.io.
留言