Check out example codes for "code: 'EADDRINUSE',  errno: 'EADDRINUSE',  syscall: 'listen',  address: '::',  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