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.rpm

    For 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 install

    to install required packages in package.json

Similar Posts

Leave a Reply

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