{"action":"created","issue":{"url":"https://api.github.com/repos/bwdbooks/learning-angularjs/issues/2","repository_url":"https://api.github.com/repos/bwdbooks/learning-angularjs","labels_url":"https://api.github.com/repos/bwdbooks/learning-angularjs/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bwdbooks/learning-angularjs/issues/2/comments","events_url":"https://api.github.com/repos/bwdbooks/learning-angularjs/issues/2/events","html_url":"https://github.com/bwdbooks/learning-angularjs/issues/2","id":62377448,"number":2,"title":"Need to sudo before starting server in ch01","user":{"login":"ktomazin","id":6758768,"avatar_url":"https://avatars.githubusercontent.com/u/6758768?v=3","gravatar_id":"","url":"https://api.github.com/users/ktomazin","html_url":"https://github.com/ktomazin","followers_url":"https://api.github.com/users/ktomazin/followers","following_url":"https://api.github.com/users/ktomazin/following{/other_user}","gists_url":"https://api.github.com/users/ktomazin/gists{/gist_id}","starred_url":"https://api.github.com/users/ktomazin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktomazin/subscriptions","organizations_url":"https://api.github.com/users/ktomazin/orgs","repos_url":"https://api.github.com/users/ktomazin/repos","events_url":"https://api.github.com/users/ktomazin/events{/privacy}","received_events_url":"https://api.github.com/users/ktomazin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-17T12:03:39Z","updated_at":"2016-02-16T18:57:47Z","closed_at":null,"body":"I get the following error when attempting to start the server:\r\nbash-3.2$ node server.js \r\nevents.js:85\r\n      throw er; // Unhandled 'error' event\r\n            ^\r\nError: listen EACCES\r\n    at exports._errnoException (util.js:746:11)\r\n    at Server._listen2 (net.js:1112:19)\r\n    at listen (net.js:1155:10)\r\n    at Server.listen (net.js:1240:5)\r\n    at Function.app.listen (/Users/ken.tomazin/IdeaProjects/learning-angularjs-master 2/node_modules/express/lib/application.js:536:24)\r\n    at Object.<anonymous> (/Users/ken.tomazin/IdeaProjects/learning-angularjs-master 2/server.js:4:5)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n\r\nThe issue is that we are trying to connect on port 80 and you need to sudo on a unix system before doing that:\r\n\r\nsudo node server.js"},"comment":{"url":"https://api.github.com/repos/bwdbooks/learning-angularjs/issues/comments/184830420","html_url":"https://github.com/bwdbooks/learning-angularjs/issues/2#issuecomment-184830420","issue_url":"https://api.github.com/repos/bwdbooks/learning-angularjs/issues/2","id":184830420,"user":{"login":"nmarler","id":2921486,"avatar_url":"https://avatars.githubusercontent.com/u/2921486?v=3","gravatar_id":"","url":"https://api.github.com/users/nmarler","html_url":"https://github.com/nmarler","followers_url":"https://api.github.com/users/nmarler/followers","following_url":"https://api.github.com/users/nmarler/following{/other_user}","gists_url":"https://api.github.com/users/nmarler/gists{/gist_id}","starred_url":"https://api.github.com/users/nmarler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmarler/subscriptions","organizations_url":"https://api.github.com/users/nmarler/orgs","repos_url":"https://api.github.com/users/nmarler/repos","events_url":"https://api.github.com/users/nmarler/events{/privacy}","received_events_url":"https://api.github.com/users/nmarler/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T18:57:47Z","updated_at":"2016-02-16T18:57:47Z","body":"I think very similar issue on Windows machine, although different error. Running from an Administrator command prompt:\r\n\r\n>\\>node server.js\r\nevents.js:154\r\n    throw er; // Unhandled 'error' event\r\n    ^\r\nError: listen EACCESS 0.0.0.0:80\r\n\r\nFound item below on SO which suggesting using port >1024. I used port 8080 which solved the problem (specifically, edit line 4 of server.js to be: `app.listen(8080);`)\r\n\r\n[http://stackoverflow.com/q/35068712/1073908](url)"}}