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

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