events.js:160 throw er; // Unhandled 'error' event events.js:160 throw er; // Unhandled 'error' event javascript javascript

events.js:160 throw er; // Unhandled 'error' event


removing the node_modules folder, clearing npm cached files, and doing a fresh install, resolves this issue.

rm -rf node_modules && npm cache clean --force && npm install

source: https://github.com/ember-cli/ember-cli/issues/3087#issuecomment-71327402


Regarding the error at the following line:

events.js:160      throw er; // Unhandled 'error' event

The issue for me was that I already had the port open on another local node app.

Stopping the other app resolved the issue.


I was facing similar error while running my create-react-app on Ubuntu, while running a command npm start

It gets solved when I run sudo npm start

I think a problem might be with application not having enough permissions.