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:

    [bash]yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm[/bash]

    For CentOS 7, use

    [bash]yum install http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm[/bash]

  • Then, install nodejs and npm via yum:

    [bash]yum install nodejs npm[/bash]

  • Finally, go to node project root directory and run:

    [bash]npm install[/bash]

    to install required packages in package.json

Leave a comment

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