I’m trying to use JSON Server in a React App. However, I keep getting the following error.
events.js:167 throw er; // Unhandled 'error' event ^ Emitted 'error' event at: at GetAddrInfoReqWrap.doListen [as callback] (net.js:1498:12) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:17)
I’ve upgraded npm and node to the latest versions.
I’ve killed all processes with killall node and sudo killall -9 node
Any ideas what may be causing the issue?