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[/bash]

    For CentOS 7, use

    [bash]yum install[/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 Reply