DevServer 在启动之前一直关闭
DevServer keeps shutting down before starting
每当我 运行 npx cypress open-ct
我的开发服务器无法启动时。
[@cypress/webpack-dev-server]: removing HtmlWebpackPlugin from configuration.
[@cypress/webpack-dev-server]: removing HtmlPwaPlugin from configuration.
[@cypress/webpack-dev-server]: removing PreloadPlugin from configuration.
[@cypress/webpack-dev-server]: removing PreloadPlugin from configuration.
Starting type checking service...
Using 1 worker with 2048MB memory limit
<i> [webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...
我试过在 .env 中设置 DEBUG=*
,但没有抛出任何东西,所以我认为问题出在 Using 1 worker with 2048MB memory limit
.
我遵循了 cypress composer test doc 和 composer tests used to 运行 的指南,但是发生了一些事情导致它停止工作。我正在 运行在 MacBook 上进行此操作。
我有以下组件:
- “赛普拉斯”:“^9.1.1”
- "@cypress/webpack-dev-server": "^1.8.0"
- "@cypress/vue": "^2.2.3"
- "webpack-dev-server": "^4.6.0"
在 运行 通过文档和调试 webpack 开发服务器后,我了解到 SIGTERM
退出信号被调用,这就是关闭启动的原因。更多的跟踪,我注意到该节点版本需要升级才能正常工作。
本来我是运行节点10.23.0
。升级到 v12
后一切正常。
每当我 运行 npx cypress open-ct
我的开发服务器无法启动时。
[@cypress/webpack-dev-server]: removing HtmlWebpackPlugin from configuration.
[@cypress/webpack-dev-server]: removing HtmlPwaPlugin from configuration.
[@cypress/webpack-dev-server]: removing PreloadPlugin from configuration.
[@cypress/webpack-dev-server]: removing PreloadPlugin from configuration.
Starting type checking service...
Using 1 worker with 2048MB memory limit
<i> [webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...
我试过在 .env 中设置 DEBUG=*
,但没有抛出任何东西,所以我认为问题出在 Using 1 worker with 2048MB memory limit
.
我遵循了 cypress composer test doc 和 composer tests used to 运行 的指南,但是发生了一些事情导致它停止工作。我正在 运行在 MacBook 上进行此操作。
我有以下组件:
- “赛普拉斯”:“^9.1.1”
- "@cypress/webpack-dev-server": "^1.8.0"
- "@cypress/vue": "^2.2.3"
- "webpack-dev-server": "^4.6.0"
在 运行 通过文档和调试 webpack 开发服务器后,我了解到 SIGTERM
退出信号被调用,这就是关闭启动的原因。更多的跟踪,我注意到该节点版本需要升级才能正常工作。
本来我是运行节点10.23.0
。升级到 v12
后一切正常。