Check out example codes for "code: 'EADDRINUSE', [0] errno: 'EADDRINUSE', [0] syscall: 'listen', [0] address: '::', [0] port: 5000". It will help you in understanding the concepts better.

Code Example 1

killall -9 node
//You can check if it worked with the following command
ps ax

Learn ReactJs, React Native from akashmittal.com