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
^
Emitt
I have the same issue. Basically, I am using node v10+ but my project was created in v8.11.4. All the modules were used according to the older version(v8), that's why I am facing the issue. So there are two solutions either update your module or downgrade the node.
I have solved by downgrading the node from v10 to v8. Because some of the modules are not possible to update due to project dependency.