I am using Mac, OSX El Capitan 10.11.2, and trying to start angular2 application using angular-cli. As per document I have run the following
$sudo ng new dashboard
$cd dashboard
$sudo ng serve
Password:
getaddrinfo ENOTFOUND localhost
Error: getaddrinfo ENOTFOUND localhost
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
But I am getting above erro which I don't understand.
try with this command: ng serve --port 4200 --host 0.0.0.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With