Grunt (The JavaScript Task Runner) is an automation tool to perform repetitive tasks like compilation, unit testing etc. Grunt has a long list of the plugin to perform tasks provided by its community. In this tutorial, you will learn how to install Grunt on CentOS, Red Hat and Fedora systems.
1. Install Node.js
If you already have node.js and npm installed on your system skip this step. Else you need to install node.js on your system first. Use following set of commands to install node.js and npm on your system.
Advertisement
yum install -y gcc-c++ make curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash - yum install nodejs
2. Install Grunt using NPM
Now use the following command to install Grunt and Grunt CLI using npm command line utility.
npm install -g grunt
After successful installation makes sure grunt has been installed successful and check the version.
grunt --version grunt-cli v1.2.0
2 Comments
Your tutorial says it’s for Debian and Debian-based operating systems, but then uses ‘yum’ and RHEL and Centos repos.
Thanks Marc for pointing out, I have updated the tutorial.