Justin van Dongen Justin van Dongen - 8 months ago 120
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


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?


I ran the command:

sudo apt-get install nodejs-legacy

and nodejs worked again!