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

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/lib/nodejs/tap/bin/tap.js - from package: node-tap

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