Fix: grunt: command not found (Mac/Windows)


If you get the error "grunt: command not found" on Mac Terminal or Windows CMD, then follow the below steps to install grunt-cli to fix this issue.


macOS:

npm install -g grunt-cli
Logs:
% npm install -g grunt-cli

added 59 packages in 7s

4 packages are looking for funding
  run `npm fund` for details
npm notice 
npm notice New major version of npm available! 9.7.2 -> 10.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.1.0
npm notice Run npm install -g npm@10.1.0 to update!
npm notice 

Windows:

npm install -g grunt-cli
Fix - command not found macOS

This is not an AI-generated article but is demonstrated by a human on an M1 Mac running macOS Sonoma 14.0.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap