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

About NhocConan

A super lazy guy who tries to write tech blog entries in English.He is lazy, so he can only write when he is in a good mood or when he is tired of coding.

Leave a comment

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