I cloned this repo from gitHub so, while installing in the last step I try to run this command:
~/mqtt-gateway$ WEB_API_URL=http://localhost:3000 npm start
And I get this error:
[nodemon] app crashed - waiting for file changes before starting...
I've read that possibly is because of a process that haven't been terminated but I've been unable to solve it.
Hope you can help. Thank you ;)
In the error output it said:
Error: listen EADDRINUSE :::1883
The port used for this program is 1883 and I was running mosquitto on that same port so I killed it:
netstat -plten |grep mosquitto
and then
kill -9 PID
like in this question.
Just in case anyone faces a similar problem.