2016-11-28 84 views
1

試圖讓離子會議應用程序(https://github.com/driftyco/ionic-conference-app)正常工作。 離子2.1.13 NPM版本:3.10.8 節點版本:6.9.1 科爾多瓦版本:6.4.0與離子會議應用程序發生錯誤

離子服務-l結果在下面的輸出:

[email protected] ionic:serve C:\data\app\mkb

ionic-app-scripts serve "-l"

[13:21:16] ionic-app-scripts 0.0.44

[13:21:16] watch started ...

[13:21:16] build dev started ...

[13:21:16] clean started ...

[13:21:16] clean finished in less than 1 ms

[13:21:16] copy started ...

[13:21:16] transpile started ...

events.js:160

throw er; // Unhandled 'error' event 
^

Error: listen EADDRINUSE 0.0.0.0:8100

at Object.exports._errnoException (util.js:1026:11)

at exports._exceptionWithHostPort (util.js:1049:20)

at Server._listen2 (net.js:1257:14)

at listen (net.js:1293:10)

at net.js:1403:9

at _combinedTickCallback (internal/process/next_tick.js:77:11)

at process._tickCallback (internal/process/next_tick.js:98:9)

at Module.runMain (module.js:606:11)

at run (bootstrap_node.js:394:7)

at startup (bootstrap_node.js:149:9)

npm ERR! 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 ERR! node v6.9.1

npm ERR! npm v3.10.8

npm ERR! code ELIFECYCLE

npm ERR! [email protected] ionic:serve: ionic-app-scripts serve "-l"

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] ionic:serve script 'ionic-app-

scripts serve "-l"'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the ionic-conference-app package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! ionic-app-scripts serve "-l"

npm ERR! You can get information on how to open an issue for this project with:

...

There was an error serving your Ionic application: There was an error with the spawned command: serve

不限關於出了什麼問題的想法?

非常感謝

回答

1

我剛剛試了一下,這是爲我工作。在的package.json,它顯示出它採用了最新的RC3 ("ionic-angular": "2.0.0-rc.3-201611211919")所以要儘量做到以下幾點:

  1. 更新您的離子CLI:npm install -g ionic
  2. 刪除您的節點文件夾,然後再做npm install
  3. 現在,你用ionic serve得到什麼?
1

你的錯誤是

listen EADDRINUSE 0.0.0.0:8100

貌似端口8100是在使用中。 嘗試使用

--port=8101

也在run.js文件

0

的錯誤建議,我認爲該端口已在使用中,你可以更改此值在不同的端口上運行。

在我的情況下,我關閉了連接到我的Ionic應用程序的瀏覽器實例,並關閉了我的其他VS Code Ionic項目,並嘗試再次運行ionic serve命令,這似乎解決了問題。

相關問題