This is the basic process to install and build an existing GRUNT project with npm on CentoOS 7.
Install npm via CentOS EPEL
yum install epel-release npm
Set your npm prefix to somewhere you have write access to bin, etc, & lib. The bin directory should be in your $PATH, i.e.
It is not recommended to run npm as root.
npm config set prefix '~/' export PATH=~/bin:$PATH
npm install -g grunt-cli
A typical GRUNT project has a
cd project_dir npm install grunt