Install Development Environment for NodeJS on CentOS
This short blog entry will cover how to install nodejs and npm for NodeJS on CentOS.
- First, install epel repository:
yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmFor CentOS 7, use
yum install http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm - Then, install nodejs and npm via yum:
yum install nodejs npm - Finally, go to node project root directory and run:
npm installto install required packages in package.json
