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
Your site is running at http://localhost:8000
Try changing your port. Like 3000 or 8080.
app.listen(3000)
My 8080 post was taken, so I got this same error
Removing the node_modules
directory and reinstalling again using npm install
should solve the problem.
Try npm start
as superuser: sudo npm start
This worked for me.
update severless
with npm. This will resolve it.
restart the WebStorm was worked for me.
instead of removed 'node_modules' folder and reinstall modules by npm install
.
Perhaps you started the echo server elsewhere with same port.