esvalidate.js: 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/bin/esvalidate.js - from package: nodejs-esprima
/usr/lib/node_modules/esprima/bin/esvalidate.js - from package: nodejs-esprima

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