Justin van Dongen Justin van Dongen - 1 month ago 20
Linux Question

node -bash: /usr/sbin/node: No such file or directory

I am having this error with node. Running Debian 7 (Wheezy) a VPS.

I have this error if I for example run this command (in the directory of the .js)

node sell.js


or

screen node sell.js


They both don't work, because I am getting this error:


-bash: /usr/sbin/node: No such file or directory


Can somebody help me?

Answer

I ran the command:

sudo apt-get install nodejs-legacy

and nodejs worked again!