Here is what I get trying to install the API
sbrown@sbrown-virtual-machine:~$ sudo npm install node-dahua-api
>
[email protected] install /home/sbrown/node_modules/net-keepalive/node_modules/ref
> node-gyp rebuild
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit...