On this page
How to install Grunt
Install Grunt via npm over SSH on your Kualo hosting account and set up a shell alias for quick access.
This guide explains how to install Grunt using npm over SSH on your Kualo hosting account. You will need SSH access and basic command-line experience.
If you are not comfortable using SSH, open a support ticket and one of our system administrators will install Grunt for you.
Install Grunt via npm
- From your home directory, install both the Grunt library and its CLI tool:
npm install grunt grunt-cli
All packages are downloaded and installed locally under ~/node_modules.
- Confirm the binary is present:
find ./node_modules/ -name "grunt"
You should see output similar to:
./node_modules/grunt
./node_modules/grunt/lib/grunt
./node_modules/grunt-cli/bin/grunt
./node_modules/.bin/grunt
- Check the version to confirm Grunt is working:
./node_modules/grunt-cli/bin/grunt -V
Set up a shell alias
To avoid typing the full path every time, add an alias to your ~/.bashrc file.
- Append the alias:
echo 'alias grunt="~/node_modules/grunt-cli/bin/grunt"' >> ~/.bashrc
- Apply the change:
source ~/.bashrc
- Verify the alias works:
grunt -V
You can now use the grunt command directly to run your tasks.
Was this helpful?
Your feedback helps us find gaps in the docs.
Thanks for the feedback!
Related articles
Node, Python & Ruby
Enabling NodeJS in cPanel
Use the Node.js Selector in cPanel to deploy and manage Node.js web applications on your h...
Node, Python & Ruby
How to deploy a Node.js application
Deploy a Node.js application on Kualo hosting using cPanel's Node.js Selector and Phusion...
Node, Python & Ruby
Migrating an Existing Node.js Application
Move your existing Node.js app to Kualo hosting with a few small adjustments for cPanel's...
Node, Python & Ruby
Creating a Node.js app via the command-line (advanced)
Use SSH and the cloudlinux-selector CLI to create and manage a Node.js app without touchin...
Still need a hand?
Real people, around the clock - start a chat or open a ticket and we'll help you put it right.