【发布时间】:2016-09-04 03:42:22
【问题描述】:
我已经安装了
- Node.js
- 科尔多瓦
- 离子
安装后我创建了一个项目
$ionic start myApp
$cd myApp
$ionic serve
但是本地主机没有加载任何东西并且终端显示以下错误:
The port 8100 was taken on the host localhost - using port instead
Gulp startup tasks: 0=sass, 1=watch
Running live reload server: undefined
Watching: 0=www/**/*, 1=!www/lib/**/*
Running dev server: http://localhost:
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 $ events.js:141
throw er; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL 192.168.1.5
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at Server._listen2 (net.js:1221:19)
at listen (net.js:1270:10)
at net.js:1379:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:64:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:83:10)
有什么问题?
【问题讨论】:
-
您是否正在运行其他可能导致冲突的应用程序?您是否尝试过使用
ionic serve -p [port number]在不同的端口上运行此应用程序,例如:ionic serve -p 8005 -
同样的错误,更改端口号后。
标签: ionic-framework hybrid-mobile-app