Trying to build an experimental CRUD app, however there is an issue connecting to db.
Using mLab free db. No matter which port is specified the error is EADDRINUSE :::
How do I close all Node instances that might be using these ports?
Trying to build an experimental CRUD app, however there is an issue connecting to db.
Using mLab free db. No matter which port is specified the error is EADDRINUSE :::
How do I close all Node instances that might be using these ports?
Solution is already given here.
How to fix Error: listen EADDRINUSE while using nodejs?
To check which ports are in use , try this command
netstat -ntlp
to check node JS processes (instance of your app or other using the same port yu are requesting ) running
ps aux | grep -i node
and kill relevant processes by
kill *process-id* | killall node