Skip to content
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

Port 0 or '?' not working on OS X #103

Closed
kibin opened this issue Apr 21, 2014 · 10 comments
Closed

Port 0 or '?' not working on OS X #103

kibin opened this issue Apr 21, 2014 · 10 comments

Comments

@kibin
Copy link

kibin commented Apr 21, 2014

When I'm trying to set port to special values (e.g. 0 or '?') grunt exits with
Fatal error: Port should be > 0 and < 65536
On colleague's Ubuntu it seems to working okay.

What might be the problem?
I'm on OS X 10.9.2, grunt 0.4.4, grunt-contrib-connect 0.7.1

@vladikoff
Copy link
Member

When I use this on OS X I get port :51103. I pushed 2 tests configurations to the repo 001dde7
See if you can npm install and npm test

@kibin
Copy link
Author

kibin commented Apr 23, 2014

Strange. I've cloned repo, made npm install, npm test, but still:

Running "connect:self_port_q" (connect) task
Fatal error: Port should be > 0 and < 65536
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

@wilmoore
Copy link

wilmoore commented May 2, 2014

Yup, verified. Running the unit tests on OS X results in the same Fatal error: Port should be > 0 and < 65536.

@fardog
Copy link
Contributor

fardog commented May 2, 2014

Can verify that all tests pass on OS X, 10.9.2. I get port :62106; something else might be at play here.

rMPB 15-inch, Early 2013
Mac OS X 10.9.2
Node v0.10.26
npm v1.4.3
grunt-cli v0.1.13
grunt v0.4.4

I'm an administrator on my Mac OS X machine, but the npm test command was run without sudo so that shouldn't make any difference.

@kibin
Copy link
Author

kibin commented May 2, 2014

Okay, now I understand the problem: I've switched to node 0.10.26 and all tests have passed. However on 0.11.11 (that I had) and on the latest 0.11.13 tests are failing.

@vladikoff
Copy link
Member

0.11.11 is not supported, it is unstable.

@jeffreydwalter
Copy link

I'm seeing this issue in node v0.12.0 on OSX 10.10.1.

$ node -v
v0.12.0
$ grunt connect
Running "connect:task" (connect) task
Fatal error: port should be > 0 and < 65536: 0

@quentindemetz
Copy link

Same issue here. @vladikoff do you want me to create a new ticket ?

@jeffreydwalter
Copy link

@quentindemetz I already filed an issue for this bug in the node project and they resolved it.

nodejs/node-v0.x-archive#9194

@quentindemetz
Copy link

Thanks, fantastic! Looks as if it's been fixed, we just need to wait for a new release…

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

6 participants