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
Reference: https://gruntjs.com/getting-started

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