grunt-compare-size: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/lib/node_modules/grunt-compare-size/bin/grunt-compare-size - from package: nodejs-grunt-compare-size

You may install the required package with command yum install {package}
Error in other languages:
grunt-compare-size: bevel nie gevind nie
grunt-compare-size: comandă negăsită
grunt-compare-size: comando não encontrado
grunt-compare-size: commande introuvable
grunt-compare-size: command not found
grunt-compare-size: käsku ei ole
grunt-compare-size: không tìm thấy lệnh
grunt-compare-size: komanda nerasta
grunt-compare-size: Kommando nicht gefunden.
grunt-compare-size: kommandot finns inte
grunt-compare-size: komut yok
grunt-compare-size: nie znaleziono polecenia
grunt-compare-size: níor aimsíodh an t-ordú
grunt-compare-size: no se encontró la orden
grunt-compare-size: no s'ha trobat l'ordre
grunt-compare-size: opdracht niet gevonden
grunt-compare-size: parancs nem található
grunt-compare-size: perintah tidak ditemukan
grunt-compare-size: príkaz nenájdený
grunt-compare-size: příkaz nenalezen
grunt-compare-size: команда не найдена
grunt-compare-size: командата не е открита
grunt-compare-size: 命令找不到
grunt-compare-size: コマンドが見つかりません