"ionic serve" not working

Hello everybody,

I’m new to ionic, I just created my first ionic project (using “ionic start” command). But I can’t get it to run, when I use “ionic serve” I get the following error:
“An uncaught exception occurred and has been reported to Ionic
getaddrinfo ENOTFOUND localhost (CLI v1.6.1)”

I looked all around the internet in vain, can anyone help me with this please?

My system information:

Cordova CLI: 5.1.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 1.0.1
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
ios-deploy version: 1.7.0
ios-sim version: 4.1.1
OS: Mac OS X Yosemite
Node Version: v0.12.6
Xcode version: Xcode 6.3.2 Build version 6D2105

Thanks a lot ^^.

Looks like localhost is not defined on your machine?!? Try

ionic serve --address
1 Like

It works ! Oh, I get it now. Thanks a lot @encodedmirko :smile: