I finally got to nodejs on my ubuntu 16.04 system (I have been on a longish vacation). I have installed nodejs 4.2.6, npm, pm2 and node-dahua-api (last two globally). Runing "npm list -g --depth=0" gives:
When I try to run "sudo node dahua.js", I get the following:
So what am I doing wrong...