Working with nodejs on Debian / Beaglebone. Node: no such file or directory

less than 1 minute read

This is due to package manager naming issue. Node should be installed as node, not nodejs. All you need to do is link nodejs to node:

sudo ln -s /usr/bin/nodejs /usr/bin/node

You’re good to go!