-
Notifications
You must be signed in to change notification settings - Fork 28
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
Claims all ports occupied on macOS high sierra #29
Comments
Yeah, localhost should be optional, it depends on /etc/hosts. |
Can you tell me the version of detect-port? Dns notfound error it has been handled and ignore on https://github.com/node-modules/detect-port/blob/master/lib/detect-port.js#L82 |
Mine's
(I've no idea about the differences between different detect-ports in npmjs, they all seemed to point to this github project.) |
detect-port-alt is not the detect-port. I don't know why they publish the detect-port-alt package and the source code not from https://github.com/node-modules/detect-port |
I solved it populating my
|
@fengmk2 I came across this after noticing I strongly recommend contacting npm support about this - while it looks like this is just the publishing of a forked version of Personally this scares the crap out of me, as if someone got control of that repo they could easily publish a patch version that'd do all sorts of nasty things. npm are usually pretty good about this because of the huge security risk this represents - ideally what you want is for the I'm happy to help out with this :) |
For every port I've tried detect-port claims the port is occupied but lsof finds nothing. Turning on DEBUG shows errors similar to
It appears default macos installation does not include localhost in
/etc/hosts
-- the file is completely empty. Adding an entry fixes this, but IMO it shouldn't be required.macOS 10.13.3
The text was updated successfully, but these errors were encountered: