How to install the Grunt CLI on Debian 10


Grunt is basically a task runner that is used for automation.

Installing NodeJS

sudo apt-get install curl
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

To check the version of NodeJS you can use the following command:

node -v

Install Grunt

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
npm install -g grunt-cli

To check the version of Grunt you can use the following command:

grunt --version

Leave a Reply

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