离子服务未被捕获的例外

时间:2015-06-09 07:28:12

标签: cordova ionic-framework ionic

当我运行离子服务时,我的网络浏览器中没有任何显示

ionic serve

这就是我收到的:

Monas-MacBook-Pro:myDemoApp mona$ ionic serve
The port 35729 was taken on the host localhost - using port 35730 instead
Running live reload server: http://localhost:35730
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Running dev server: http://localhost:8100
Ionic server commands, enter:
  restart or r to restart the client app from the root
  goto or g and a url to have the app navigate to the given url
  consolelogs or c to enable/disable console log output
  serverlogs or s to enable/disable server log output
  quit or q to shutdown the server and exit

ionic $ An uncaught exception occured and has been reported to Ionic



listen EADDRINUSE (CLI v1.5.0)

Your system information:

Cordova CLI: 5.0.0
Gulp version:  CLI version 3.9.0
Gulp local:  
Ionic Version: 1.0.0
Ionic CLI Version: 1.5.0
Ionic App Lib Version: 0.1.0
ios-deploy version: Not installed
ios-sim version: 3.1.1 
OS: Mac OS X Mavericks
Node Version: v0.10.24
Xcode version: Xcode 6.2 Build version 6C131e 

原因是什么以及如何解决?

1 个答案:

答案 0 :(得分:5)

listen EADDRINUSE(CLI v1.5.0)表示地址正在使用中。

请到终点站试试" killall ionic"杀死端口上运行的离子进程并使用" ionic serve"重新启动服务器。