-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Error: getaddrinfo ENOTFOUND localhost #2227
Comments
These two links seem to indicate that there is some problem with your http://stackoverflow.com/questions/35757799/webpack-dev-server-cant-find-localhost You can also see this section of the readme for a way to serve on a different address via the |
All started with the same error (+ Firefox redirection from http://localhost to www.localhost.com) and 4h later..."still stuck"! Long story short, it appears Ive accidently "corrupted" the When Ive |
I am getting below error while trying to run my angular application.....what to do to fix it? getaddrinfo ENOTFOUND localhost |
@nebiljabari thanks that's work for me |
I can confirm adding the standard lines back for the definition of localhost on the hosts file did it form me.
|
It worked perfectly, Thanks :) |
Worked like a charm! Had changed the hosts file while setting up a hadoop cluster and never reverted to the original. Thank you 👍 |
Worked guys awesome community!!! 👍 💯 |
Thanks :) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:=> angular-cli: 1.0.0-beta.14
=> node: 6.6.0
do on your code? etc.
=> Given: Install angular-cli: 1.0.0-beta.14
When: Run "ng new my-project"
And: I run "ng s"
Then Get Error "getaddrinfo ENOTFOUND localhost"
=> getaddrinfo ENOTFOUND localhost
Error: getaddrinfo ENOTFOUND localhost
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup as oncomplete
The text was updated successfully, but these errors were encountered: