Simply installing the nodejs and npm packages evidently isn’t entirely turn-key.
Trying to run:
sudo npm -g install testacular
sh: 1: node: not found npm ERR! error installing firstname.lastname@example.org npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read npm WARN /usr/share/doc/nodejs/README.Debian npm WARN npm ERR! error installing email@example.com
…because Debian provides the node.js binary as
/usr/bin/nodejs and many node packages write their shebangs as
#!/usr/bin/node instead. Installing the
nodejs-legacy package provides a symlink to resolve these errors. (Or you can just make the symlink yourself!)