pegjs: 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 Debian possible default full paths are:

/usr/bin/pegjs - from package: node-pegjs

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