ionic2 重新整理頁面 伺服器關閉的問題

2021-08-27 18:06:50 字數 976 閱讀 1974

[10:31:07]  lint finished in

4.41 s

events.js:183

throw er; // unhandled 'error' event

^error: read econnreset

at _errnoexception (util.js:992:11)

at tcp.onread (net.js:618:25)

npm err! code elifecycle

npm err! errno 1

npm err! [email protected]

.0"--address"

"0.0.0.0"

"--port"

"8100"

"--livereload-port"

"35729"

`npm err! exit status 1

npm err!

npm err! failed at the [email protected]

.0ionic:serve script.

npm err! this is probably not a problem with

npm. there is likely additional logging output above.

npm err! a complete log of

this run can be found in:

npm err! /users/wuqin/.npm/_logs/2018-09-10t02_31_08_054z-debug.log

刪除node_modules/ws目錄,然後在專案目錄啟動命令列,輸入

npm install [email protected]

等ws安裝完,再啟動伺服器,此時再重新整理就不會報錯了,這個問題的原因就是ws模組的bug,3.3.2版本的ws模組修復了問題。

ionic3遇到的重新整理頁面伺服器關閉問題

啟動使用ionic serve啟動伺服器之後只要一重新整理介面就會導致伺服器關閉,報的錯誤如下 events.js 136 throw er unhandled error event error read econnreset at errnoexception util.js 999 13 at...

ionic3遇到的重新整理頁面伺服器關閉的問題

啟動使用ionic serve啟動伺服器之後只要一重新整理介面就會導致伺服器關閉,報的錯誤如下 events.js 136 throw er unhandled error event error read econnreset at errnoexception util.js 999 13 at...

ionic3遇到的重新整理頁面伺服器關閉的問題

啟動使用ionic serve啟動伺服器之後只要一重新整理介面就會導致伺服器關閉,報的錯誤如下 events.js 136 throw er unhandled error event error read econnreset at errnoexception util.js 999 13 at...