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
![](https://www.juscho.de/wp-content/uploads/2021/03/Bildschirmfoto_2021-03-10_10-48-11-1024x486.png)
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
![](https://www.juscho.de/wp-content/uploads/2021/03/Bildschirmfoto_2021-03-10_11-06-12-1024x486.png)