26 October 2013
node: No such file or directory
TL;DR: When installing the nodejs package on Debian, you'll probably need to install nodejs-legacy along with it.
If you are trying to use Node.js on Debian, you might get a node: No such file or directory error. I did. The root of the problem is that, 'Both LinuxNode (package "node") and node.js (package "nodejs") are designed to be accessed through the command name "node"' (bug #614907). Debian's solution is to make Node.js access happen through the nodejs command, move the command that previously used the node command to ax25-node, and (it seems) to let nobody use the node command.
Of course this breaks everything that expects the node command to invoke Node.js, and that's why you see the error. Fortunately, the Debian solution also has a workaround: package nodejs-legacy installs a symlink from node to nodejs.