Trying to get ionic conference app (https://github.com/driftyco/ionic-conference-app) working. ionic 2.1.13 npm version: 3.10.8 node version: 6.9.1 cordova version: 6.4.0
尝试让ionic会议应用程序(https://github.com/drift /ionic- conferenceapp)工作。ionic 2.1.13 npm版本:3.10.8节点版本:6.9.1 cordova版本:6.4.0。
ionic serve -l results in the following output:
离子服务-l输出如下:
ionic-conference-app@ ionic:serve C:\data\app\mkb
ionic-conference-app@离子:为C:\ \ app \ mkb数据
ionic-app-scripts serve "-l"
ionic-app-scripts服务“- l”
[13:21:16] ionic-app-scripts 0.0.44
[13:21:16]ionic-app-scripts 0.0.44
[13:21:16] watch started ...
[13:21:16]看开始……
[13:21:16] build dev started ...
[13:21 . 21] build dev .开始…
[13:21:16] clean started ...
(13:21:16)清洁开始……
[13:21:16] clean finished in less than 1 ms
[13:21 . 42]用1毫秒内完成
[13:21:16] copy started ...
(13:21:16)副本开始……
[13:21:16] transpile started ...
[13:21:16]transpile开始……
events.js:160
events.js:160
throw er; // Unhandled 'error' event ^
Error: listen EADDRINUSE 0.0.0.0:8100
错误:EADDRINUSE 0.0.0.0:8100听
at Object.exports._errnoException (util.js:1026:11)
在Object.exports。_errnoException(util.js 1026:11):
at exports._exceptionWithHostPort (util.js:1049:20)
在出口。_exceptionWithHostPort(util.js 1049:20):
at Server._listen2 (net.js:1257:14)
在服务器上。_listen2(net.js 1257:14):
at listen (net.js:1293:10)
在听(net.js 1293:10):
at net.js:1403:9
在net.js:1403:9
at _combinedTickCallback (internal/process/next_tick.js:77:11)
在_combinedTickCallback(内部/过程/ next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
在过程。_tickCallback(内部/过程/ next_tick.js 98:9):
at Module.runMain (module.js:606:11)
Module.runMain(module.js 606:11):
at run (bootstrap_node.js:394:7)
在运行(bootstrap_node.js 394:7):
at startup (bootstrap_node.js:149:9)
在启动时(bootstrap_node.js 149:9):
npm ERR! Windows_NT 10.0.14393
npm犯错!Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program > Files\nodejs\node_modules\npm\bin\npm-cli.js" "r " "ionic:serve" "--" "-l"
npm犯错!argv“C:\ Program Files \ nodejs \节点。exe”“C:\程序>文件\ nodejs \ node_modules \ npm \ bin \ npm-cli。js" r " "ionic:serve" -" -l"
npm ERR! node v6.9.1
npm犯错!节点v6.9.1
npm ERR! npm v3.10.8
npm犯错!npm v3.10.8
npm ERR! code ELIFECYCLE
npm犯错!代码ELIFECYCLE
npm ERR! ionic-conference-app@ ionic:serve:
ionic-app-scripts serve "-l"
npm犯错!ionic- meeting -app@ ionic:serve: ionic-app-scripts serve "-l"
npm ERR! Exit status 1
npm犯错!退出状态1
npm ERR!
npm犯错!
npm ERR! Failed at the ionic-conference-app@ ionic:serve script 'ionic-app-
npm犯错!在ionic-conference-app@ ionic:服务脚本“ionic-app-”失败
scripts serve "-l"'.
脚本“- l”服务。
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm犯错!确保您有最新版本的node。js和npm安装。
npm ERR! If you do, this is most likely a problem with the ionic-conference-app package,
npm犯错!如果你这么做了,这很可能是ionic会议应用程序包的问题,
npm ERR! not with npm itself.
npm犯错!不是npm本身。
npm ERR! Tell the author that this fails on your system:
npm犯错!告诉作者这在你的系统上是失败的:
npm ERR! ionic-app-scripts serve "-l"
npm犯错!ionic-app-scripts服务“- l”
npm ERR! You can get information on how to open an issue for this project with:
npm犯错!你可透过以下途径获得有关如何为本项目展开工作的资料:
...
…
There was an error serving your Ionic application: There was an error with the spawned command: serve
在您的离子应用程序中有一个错误:衍生命令:serve有一个错误
Any ideas as to what has gone wrong?
有什么问题吗?
Many thanks
非常感谢
3 个解决方案
#1
1
I've just tried it and it was working for me. On the package.json, it's showing that it's using the latest rc3 ("ionic-angular": "2.0.0-rc.3-201611211919")
so try to do the following:
我刚试过,它对我很有效。包装上的说明。json使用的是最新的rc3(“ionic- angle”:“2.0 -rc.3-201611211919”)
- Update your ionic CLI:
npm install -g ionic
- 更新您的ionic CLI: npm安装-g ionic
- Delete your node folder and do again
npm install
- 删除节点文件夹,再次安装npm
- Now, what do you get with
ionic serve
? - 现在,离子发球有什么用?
#2
1
the error you get is
你得到的错误是
listen EADDRINUSE 0.0.0.0:8100
听EADDRINUSE 0.0.0.0:8100
looks like the port 8100 is in use. try running on a different port using
看起来8100端口正在使用中。尝试使用不同的端口运行。
--port=8101
——端口= 8101
also you can change this value in the run.js file
您还可以在运行时更改此值。js文件
#3
0
The error suggests to me that the port is in use already.
这个错误使我想到这个端口已经在使用了。
In my case I closed my browser instances connected to my Ionic app and also closed down my other VS Code Ionic projects and tried running the ionic serve command again and this appeared to resolve the problem.
在我的例子中,我关闭了连接到我的Ionic应用程序的浏览器实例,并关闭了我的其他VS代码Ionic项目,并尝试再次运行Ionic服务命令,这似乎解决了问题。
#1
1
I've just tried it and it was working for me. On the package.json, it's showing that it's using the latest rc3 ("ionic-angular": "2.0.0-rc.3-201611211919")
so try to do the following:
我刚试过,它对我很有效。包装上的说明。json使用的是最新的rc3(“ionic- angle”:“2.0 -rc.3-201611211919”)
- Update your ionic CLI:
npm install -g ionic
- 更新您的ionic CLI: npm安装-g ionic
- Delete your node folder and do again
npm install
- 删除节点文件夹,再次安装npm
- Now, what do you get with
ionic serve
? - 现在,离子发球有什么用?
#2
1
the error you get is
你得到的错误是
listen EADDRINUSE 0.0.0.0:8100
听EADDRINUSE 0.0.0.0:8100
looks like the port 8100 is in use. try running on a different port using
看起来8100端口正在使用中。尝试使用不同的端口运行。
--port=8101
——端口= 8101
also you can change this value in the run.js file
您还可以在运行时更改此值。js文件
#3
0
The error suggests to me that the port is in use already.
这个错误使我想到这个端口已经在使用了。
In my case I closed my browser instances connected to my Ionic app and also closed down my other VS Code Ionic projects and tried running the ionic serve command again and this appeared to resolve the problem.
在我的例子中,我关闭了连接到我的Ionic应用程序的浏览器实例,并关闭了我的其他VS代码Ionic项目,并尝试再次运行Ionic服务命令,这似乎解决了问题。