如何在运行Gulp Serve命令时修复Invalid Server错误

时间:2019-02-15 09:37:42

标签: node.js gulp

使用gulp serve命令运行节点服务器项目时,出现“服务器无效错误”。如何解决此问题?

我的gulp版本是

CLI version 2.0.1
Local version 4.0.0

当我最初尝试使用Gulp Serve命令运行时,它显示:

D:\xxx\xxxx>gulp serve
Using gulpfile D:\xxx\xxx\gulpfile.js
Starting 'serve'...
Starting 'clean'...
Finished 'clean' after 94 ms
Starting 'build'...
Starting 'client'...
Updating Client
Finished 'build' after 2.55 s
Finished 'client' after 2.79 s
Starting 'run'...
Starting 'watch'...
Listening on port 8080
'run' errored after 10 min
TypeError: Invalid server: undefined
at new Connection (D:\xxx\xxx\node_modules\tedious\lib\connection.js:118:13)
at Timeout.Store.destroyExpired [as _onTimeout] (D:\xxx\xxx\dist\scripts\store.js:45:32)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
'serve' errored after 10 min
The following tasks did not complete: watch
Did you forget to signal async completion?

监听8080端口后,需要花费更多时间才能运行。

如何识别和解决此问题。我是新手。请任何人帮助我。

0 个答案:

没有答案
相关问题