rimraf: 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/rimraf - from package: node-rimraf

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