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

Reference: https://gruntjs.com/getting-started


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!

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!