Justin van Dongen Justin van Dongen - 1 year ago 313
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?

Answer Source

I ran the command:

sudo apt-get install nodejs-legacy

and nodejs worked again!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download