Установка пехотинца глобально:
$npm install grunt-cli -g
попытка проверить ту:
$grunt -v
grunt-cli: The grunt command line interface (v1.2.0)
Fatal error: Unable to find local grunt.
If you're seeing this message, grunt hasn't been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:
http://gruntjs.com/getting-started
Подробнее:
$ which grunt
/usr/bin/grunt