Skip to content

Run APP.JS exception #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ngoccuong291 opened this issue Oct 19, 2011 · 3 comments
Closed

Run APP.JS exception #584

ngoccuong291 opened this issue Oct 19, 2011 · 3 comments

Comments

@ngoccuong291
Copy link

To whom it may concern

I tried this instruction http://socket.io/#how-to-use

Already install using "npm install socket.io" on Mac OS 10.6.7 successfully
But when I tried to run the server side code in App.Js by "node APP.JS"
I got this error:
{{{
info - socket.io started

node.js:203
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: listen EACCESS
at errnoException (net_uv.js:569:11)
at Array. (net_uv.js:633:28)
at EventEmitter._tickCallback (node.js:195:26)
}}}

Any help would be appreciated so much
Thanks in advance

@3rd-Eden
Copy link
Contributor

Do you happend to be listening on a port below 1024, without root rights?

@ngoccuong291
Copy link
Author

Hi Arnout

I just figured it out. The node version I installed was 0.5.9 which was not stable. I tried to reinstall using the stable version and it worked.

Thanks for your help
Kind regards

Leon

@mgan59
Copy link

mgan59 commented May 5, 2012

I'm running node v0.6.15 with npm v1.1.16 and the same code from the how-to and the script stops execution without a stack-trace and just displays the following

node app.js 
    info  - socket.io started
    warn  - error raised: Error: listen EACCES

If I put sudo in front of the call

sudo node app.js

it works. This is both for my mac osx environment and a vmware-fusion Ubuntu 10.10

Adding this comment here incase anyone else stumbles onto this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants