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 & Grunt-cli on Debian 9 Stretch and Debian 9 Jessie.

Advertisement

Prerequsites

You must have root or sudo privileged user account access to your Debian system. Now login to your Debian system. For remote system can use ssh client or its alternatives for Windows.

ssh root@debian

Upgrade the current packages to the latest version.

sudo apt update
sudo apt upgrade

Step 1 – Installing Node.js

If you already have node.js and npm installed on your system skip this step. Elase you need to install node.js on your system first. Use following set of commands to add node.js ppa in your Ubuntu system and install it.

sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs

Make sure you have successfully installed node.js and npm on your system

node --version
npm --version

Step 2 – Install Grunt on Debian

Now use the following command to install grunt and grunt cli using npm command line utility.

sudo npm install -g grunt

This will install Grunt globally on your system. Run command to check the version installed on your system.

grunt --version

grunt-cli v1.2.0
Share.
Leave A Reply


Exit mobile version